Hi There,
I've a serious issue on my Centos server with DirectAdmin installed. The Nginx webserver is failing to start after an update 30 minutes ago. Hope there's someone that can help! I get the following message in the terminal:
I see "nginx: [emerg] "server" directive is not allowed here in /usr/local/directadmin/data/users/admin/nginx.conf:34" what should I change to make it work again?
Thanks in advance!
I've a serious issue on my Centos server with DirectAdmin installed. The Nginx webserver is failing to start after an update 30 minutes ago. Hope there's someone that can help! I get the following message in the terminal:
Code:
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-05-01 10:46:34 CEST; 16s ago
Process: 17435 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
May 01 10:46:34 server....nl systemd[1]: Starting The nginx HTTP and reverse proxy server...
May 01 10:46:34 server....nl nginx[17435]: nginx: [emerg] "server" directive is not allowed here in /usr/local/directadmin/data/users/admin/nginx.conf:34
May 01 10:46:34 server....nl nginx[17435]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 01 10:46:34 server....nl systemd[1]: nginx.service: control process exited, code=exited status=1
May 01 10:46:34 server....nl systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
May 01 10:46:34 server....nl systemd[1]: Unit nginx.service entered failed state.
May 01 10:46:34 server....nl systemd[1]: nginx.service failed.
I see "nginx: [emerg] "server" directive is not allowed here in /usr/local/directadmin/data/users/admin/nginx.conf:34" what should I change to make it work again?
Thanks in advance!