Accidentally deleted my nginx.conf file

    • Offizieller Beitrag

    You don't need a copy. Just execute the following as root: omv-mkconf nginx

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I've tried this, and after I restart nginx I get this:


    Code
    Restarting nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: [emerg] no "events" section in configuration
    nginx: configuration file /etc/nginx/nginx.conf test failed
  • The reason it says that is because I created a blank nginx.conf file thinking it would resolve the issue when running omv-firstaid.


    After deleting the conf and restarting nginx I get this:


    Code
    Restarting nginx: nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
    nginx: configuration file /etc/nginx/nginx.conf test failed
    • Offizieller Beitrag

    My mistake. That file doesn't change so omv-mkconf doesn't rewrite it. Here is the file:


    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!