Laravel configures nginx as pseudo-static
怪我咯
怪我咯 2017-05-16 16:53:46
0
1
489

1. I added this sentence from laravel official in the nginx configuration, and it reported 500. Why? After that, it was normal
2.
location / {try_files $ uri $uri/ /index.php?$query_string;}
3. I looked at a lot of configurations, but it doesn’t work. Pseudo-static has been unsuccessful. Please give me some advice.
4、/q/1010000002797...

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
我想大声告诉你

To give you an idea for troubleshooting, add a sentence print_r($_SERVER);die;

under <?php in index.php in the web root directory

Attention, be sure to add die;

Then visit the website. If it cannot be accessed normally, it means that the location parsed by PHP failed.

If it can be accessed normally, check whether the pathinfo and request_path output in the browser are correct.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template