openresty / headers-more-nginx-module

Set, add, and clear arbitrary output headers in NGINX http servers
1.65k stars 221 forks source link

[Help] Need compatibility with nginx/1.16.1 #108

Closed prawen closed 4 years ago

prawen commented 4 years ago

Hello,

Facing issue with using more_clear_input_headers on nginx/1.16.1

Error: nginx: [emerg] unknown directive "more_clear_headers" in /etc/nginx/nginx.conf

OS: Ubuntu 16.04 Xenial

Installed nginx from https://nginx.org/en/linux_packages.html#Ubuntu

Upgraded nginx from 1.10.3 to 1.16.1

When upgraded, it removed nginx-common and nginx-extras packages. Not sure why.

Please help.

rainingmaster commented 4 years ago

@prawen Hello, I think it because you install nginx instead of instead openresty? Official Nginx maybe not compile with headers-more-nginx-module. You can try to search it like this: nginx -V 2>&1 | grep headers-more.

I suggest you install Openresty from official repo, and it has compile with headers-more-nginx-module already.