search

Home  >  Q&A  >  body text

How to prevent phpstudy from resetting vhosts.conf after restarting?

I have been using WAMPSERVER before.
Now using nginx php 7 in phpstudy.
I just modified vhosts.conf and added index.php to rewrite. Then restart nginx in phpstudy and it will take effect.
But when I exit phpstudy and reopen vhosts.conf, the content will be reset, and the index.php rewrite condition will be deleted.
Is there any way to prevent phpstudy from resetting the contents of vhosts.conf?

F4NNIUF4NNIU2562 days ago1285

reply all(3)I'll reply

  • F4NNIU

    F4NNIU2017-11-30 23:08:58

    The current solution is to include another file in nginx.conf and modify it in another conf, so that it will not be modified by phpstudy.

    reply
    0
  • Day

    Day2017-11-21 13:39:29

    Currently, the software automatically reads and writes configuration files according to a fixed format. If you don’t want it to be changed, you can only configure it manually, because the manually configured software will not be recognized.

    reply
    0
  • F4NNIU

    It seems they are not talking about the same issue. I have not used the site domain name management in phpstudy. I manually modified vhosts.conf, but after exiting and reopening phpstudy, vhosts.conf was restored.

    F4NNIU · 2017-11-21 14:35:43
  • Cancelreply