Laravel 5: 404 Not Found on all routes except home, /index.php extension does not resolve -
development system: debian "jessie" virtual box, php 7.0, postgresql 9.x, laravel 5.4, testing done on laravel built-in server
production system: ubuntu 16.10 digitalocean droplet, php 7.0, postgresql 9.x, laravel 5.4, nginx 1.10.3
just resolved 500 error followed 502 error app both permissions problems. can see main page of application, other routes produce 404 error. common suggestion seems .htaccess error diagnosed attempting access other routes prefixing them index.php/, doesn't resolve issue me. these routes function on development environment.
here's server block:
server { listen 80; listen [::]:80; root /home/user/var/www/mydomain.com/public; index index.php index.html index.htm; server_name mydomain.com www.mydomain.com; location / { try_files $uri $uri/ /index.php?query_string =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000; } location ~ /\.ht { deny all; } }
Comments
Post a Comment