Config nginx for a laravel proyect

I’m trying to set up a domain that used Laravel, I found out that I have to add some lines to my nginx.conf

location @rewrite {

rewrite ^/(.*)$ /index.php?_url=/$1;

}

location / {

try_files $uri $uri/ @rewrite;

}

but still not working. Some can help me with a example, please…

what’s not working? what is the error? some more details could really help.
lot of examples for laravel php nginx around the net, copying from one random :

location / {
    try_files $uri $uri/ /index.php?$query_string;        
}

location ~ \.php$ { 


}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.