Nginx error after fresh install

379 views
Skip to first unread message

Drew Rollins

unread,
Dec 12, 2016, 2:26:00 PM12/12/16
to coprHD
Just did a fresh install on VMware to test the system prior to deployment. I have been able to almost have everything up but Nginx.
I run the command sudo nginx -t and get the following output:
nginx: [emerg] unknown directive "more_clear_headers' in /etc/nginx/nginx.conf:18
nginx: configuration file /etc/nginx/nginx.conf test failed

Here is the contents of that line:
more_clear_headers 'Server';

Any help is appreciated

Drew Rollins

unread,
Dec 12, 2016, 3:31:47 PM12/12/16
to coprHD
I just deleted the line from the nginx.conf file and it worked.

Mustafa Mujahid

unread,
Dec 20, 2016, 6:53:34 AM12/20/16
to coprHD
I Simply comment the line and it works for me. I don;t know why it so.... hopefully some one can shed light on this
Reply all
Reply to author
Forward
0 new messages