search

Home  >  Q&A  >  body text

Phpstudy will delete the content I added every time when configuring a domain name.

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.

出门右拐是食堂出门右拐是食堂2628 days ago1546

reply all(2)I'll reply

  • 沉睡の黑暗

    沉睡の黑暗2017-09-25 12:08:36

    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

    reply
    0
  • Day

    Day2017-09-23 14:47:04

    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
    0
  • 出门右拐是食堂

    I used include to recreate a conf configuration file and cleared the default content of vhost.conf, which solved the problem.

    出门右拐是食堂 · 2017-09-25 09:21:21
  • Cancelreply