Support the ongoing development of Laravel.io →
Configuration Requests
Last updated 2 years ago.
0

this is my conf

server {
        listen 80;

        root /vagrant/shop/public;
        index index.php index.html index.htm;

        server_name .novistore.dev;

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

        error_page 404 /404.html;

        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
              root /usr/share/nginx/www;
        }

        include php5fpm.conf;
}

php5fpm.conf

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
}
Last updated 2 years ago.
0

Did you ever solve this? I am having an identical issue.

Last updated 2 years ago.
0

Hi chrislentz

I did solve it. Just replaced

try_files $uri $uri//index.php?$query_string;

with

try_files $uri $uri/ /index.php$is_args$args;

in ../sites-available/default

and restartet nginx.

Last updated 2 years ago.
0

xorox said:

Hi chrislentz

I did solve it. Just replaced

try_files $uri $uri//index.php?$query_string;

with

try_files $uri $uri/ /index.php$is_args$args;

in ../sites-available/default

and restartet nginx.

woah! it worked! how come? what happened? can you please explain to me? thank you man!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.