I am trying to migrate a project from slim v2 to nginx, previously this one in apache on linux

0

This is my configuration
I market 404 error

server {
        listen 80;
        listen [::]:80;
        server_name psd2.colsan.edu.mx;
        root /var/www/psd2.colsan.edu.mx/public;
        index index.php;

        try_files $uri /index.php;

        location /index.php {
        fastcgi_connect_timeout 3s;     # default of 60s is just too long
        fastcgi_read_timeout 10s;       # default of 60s is just too long
        include fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;    # assumes you are running php-fpm lo\
cally on port 9000
        }


        location = /auth-proxy {
         proxy_cache_valid 200 403 10m;
        }


        # Add index.php to the list if you are using PHP
        #index index.php index.html index.htm;

        error_log  /var/log/nginx/psd2.error.log warn;
        access_log  /var/log/nginx/psd2.access.log combined;

      # location / {
       # try_files $uri /index.php$is_args$args;
      # }

        error_page 404 /404.html;
        error_page 500 502 503 504 /50x.html;
         location = /50x.html {
         root /var/www/psd;
         }

        location /var/www/psd2.colsan.edu.mx/public {
         allow all;
        }
}
    
asked by Israel gtz 27.11.2018 в 15:43
source

0 answers