Nginx (websites) serve subdirectory

    • OMV 3.x
    • Resolved
    • 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'

      no-ip.url:9600/ gives me the root of the website
      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;
      }
    • Do you have index.php files in those directories? Does the shared folder have the right permissions?
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Still sounds like a permissions issue. What user is php running as and what user owns the subdirectories?
      omv 4.1.11 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!