Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

nginx.conf not in accepted format #3

@WurmD

Description

@WurmD
● 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions