Phpstudy will delete the content I added every time when configuring a domain name.
出门右拐是食堂
出门右拐是食堂 2017-09-23 14:39:49
0
2
1558

Every time I configure the nginx domain name, I have to add a

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

so that index.php can be hidden, but this code will be deleted every time I modify the configuration domain name.

出门右拐是食堂
出门右拐是食堂

reply all(2)
沉睡の黑暗

After adding new things by yourself, do not use other tools to configure it. Every time you have to manually add the nginx configuration file to add a new domain name

Day

The domain name for configuring Nginx is written in a fixed way, otherwise it will be wrong. If you have special requirements, you can manually configure it yourself, but it is easy to make mistakes.

  • reply I used include to recreate a conf configuration file and cleared the default content of vhost.conf, which solved the problem.
    出门右拐是食堂 author 2017-09-25 09:21:21
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template