Nginx (websites) serve subdirectory

  • Hello,


    I was setting up Nginx as plugin in omv 3. It works like a charme . Only one thing .
    I use no-ip to enter my website .
    When i want to connect to a subdirectory of my site it gives me error '404 not found'


    http://no-ip.url:9600/ gives me the root of the website
    http://no-ip.url:9600/subdirectory gives me the error


    Hope someone can help me .


    this is my openmediavault-nginx file



    server {
    listen [::]:9600 default_server ipv6only=off;
    set $root_path "/media/9bf2b533-9838-4fe1-bd3d-1224f5078306/www/";
    root $root_path;
    index index.php;
    set $socket "unix:/var/run/fpm-166cbb10-f7ca-429c-9931-abb2480ab94c.sock";
    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass $socket;
    }
    access_log /var/log/nginx/be25972e-51a7-480e-a3d3-285792f6e076-access.log;
    error_log /var/log/nginx/be25972e-51a7-480e-a3d3-285792f6e076-error.log;
    location ~ /\.ht {
    deny all;
    }
    large_client_header_buffers 4 32k;
    }

    • Offizieller Beitrag

    Do you have index.php files in those directories? Does the shared folder have the right permissions?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!

    • Offizieller Beitrag

    Still sounds like a permissions issue. What user is php running as and what user owns the subdirectories?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


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


    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!