Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nginx.conf not in accepted format #3

Open
WurmD opened this issue Dec 12, 2020 · 0 comments
Open

nginx.conf not in accepted format #3

WurmD opened this issue Dec 12, 2020 · 0 comments

Comments

@WurmD
Copy link

WurmD commented Dec 12, 2020

● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2020-12-12 11:24:10 CET; 5ms ago
     Docs: man:nginx(8)
  Process: 6580 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Dec 12 11:24:10 GPU10 systemd[1]: Starting A high performance web server and a reverse proxy server...
Dec 12 11:24:10 GPU10 nginx[6580]: nginx: [emerg] "server" directive is not allowed here in /etc/nginx/nginx.conf:1
Dec 12 11:24:10 GPU10 nginx[6580]: nginx: configuration file /etc/nginx/nginx.conf test failed
Dec 12 11:24:10 GPU10 systemd[1]: nginx.service: Control process exited, code=exited status=1
Dec 12 11:24:10 GPU10 systemd[1]: nginx.service: Failed with result 'exit-code'.
Dec 12 11:24:10 GPU10 systemd[1]: Failed to start A high performance web server and a reverse proxy server.

"server" directive is not allowed in the first line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant