On the problem of Laravel parsing path

ask a question about Laravel parsing, or Nginx parsing path.
first of all, let"s talk about the source of the problem. Since we are recently working on a laravel-based directory indexing program, one of the requirements is to show the file at the end of the php, such as. https://dev.ningkai.wang/show. here I used rewrite nginx to parse reward.php. by default Does not take the larave route, which leads to an error. If you do not add rewrite, it should be https://dev.ningkai.wang/inde.


I think nginx is not configured correctly. Try this:

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

or directly specify fastcgi_index to try

server {
    listen       80; 
    server_name  ******;
    set $local_index "/data1/www/laravel5/index.php";
    location / { 
        fastcgi_pass   php-fpm;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $local_index;
        include        fastcgi_params;
        fastcgi_keep_conn on; 
    }   
    error_page 500 502 503 504 /500.html;
    location = /500.html {
        root /data1/www/other/www;
    }
}


can you send your nginx configuration? it should be wrong


@ houshiqun689 @ Harman

this is my profile

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b378e1-2b5ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b378e1-2b5ee.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?