2

I am trying to add "add_header" to nginx but the reload is failing:

add_header

add_header Allow "GET, POST, HEAD" always;

When I run nginx -t, it points to this line mentioning I am passing too many parameters. Any idea what I am doing wrong?

url for add_header:

http://nginx.org/en/docs/http/ngx_http_headers_module.html#add_header
2
  • 1
    You have old nginx. always was added in nginx 1.7.5 Commented Nov 5, 2015 at 15:29
  • thanks - you can add as answer Commented Nov 5, 2015 at 15:53

1 Answer 1

7

You have an old nginx.

always flag was added in nginx 1.7.5

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.