Welcome! Log In Create A New Profile

Advanced

need help with unknown directive error

Posted by suikerchiller 
need help with unknown directive error
November 23, 2015 03:54PM
I'm currently getting the following error with nginx:

$ sudo nginx -t
nginx: [emerg] unknown directive "sd#" in /etc/nginx/sites-enabled/default.save:27
nginx: configuration file /etc/nginx/nginx.conf test failed

As a result none of my reverse proxies work anymore. Anyone an idea what's causing this and how I can fix it?

For the record: I made a small change in the config (copy pasted code some code in), but reverted back again after I got the error. At the time my reverse proxies where still functioning, but after a server reboot they all stopped functioning (which makes sense).

Any help would be great, thanks!
Re: need help with unknown directive error
November 25, 2015 10:40AM
Solved it, stupidly misread the error output. Apparently I duplicated the default file into default.save. There also was a typo in the duplicated config, which was the "#sd". Removed default.save and everything works again :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready