Home  >  Q&A  >  body text

ubuntu - nginx configuration subdirectory 404

The system is ubuntu16, using the lnmp one-click installation package
My configuration is as follows:

The path to phpmyadmin is as follows:

Access as follows:

Already reloaded nginx

I haven’t figured it out after spending an afternoon. Is there something wrong with the configuration? Please give me some advice!

滿天的星座滿天的星座2664 days ago1052

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-07-03 11:45:11

    
    location /MYManager/ {
        alias /home/wwwroot/default/phpmyadmin;
    }
    
    location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    reply
    0
  • Cancelreply