WAMP - Remove localhost from project URL

前端 未结 16 1655
暖寄归人
暖寄归人 2020-12-02 11:01

The URLs of my projects in WAMP are not resolving as I\'d expect. For example, I\'d expect the project in the folder c:\\wamp\\www\\project1 to have the URL http://project1/

相关标签:
16条回答
  • 2020-12-02 11:19

    in your www folder open index.php at line 30 change: $suppress_localhost to be false

    this is should look:

    $suppress_localhost = false;

    0 讨论(0)
  • 2020-12-02 11:19

    This isn't really an answer per se. It seems that the quickest way of removing a Virtual Host using WAMP is either not create one in the first place or be prepared to uninstall/reinstall it. What is the path to the config file to correct a errant and otherwise not malfunctioning WAMP Server?

    0 讨论(0)
  • 2020-12-02 11:23

    To do this you can create a virtual host using Add a virtual Host utility under Tools menu on localhost's homepage.
    For more info on how to create a virtual host visit : Step by step instructions

    0 讨论(0)
  • 2020-12-02 11:26

    Open index.php in www folder and set

    $suppress_localhost = True;===>$suppress_localhost = false;

    that is work.

    0 讨论(0)
  • 2020-12-02 11:30

    I think that the easiest and quickest way is to:

    Open index.php in your www folder >>> change: $suppress_localhost to be false / no.

    0 讨论(0)
  • 2020-12-02 11:31

    In your www folder open index.php at line 30. Here, change $suppress_localhost to be false. So, it is should look:

    $suppress_localhost = false;
    

    That was the quickest and easiest fix for me. I'm using 64 bit Wamp.

    0 讨论(0)
提交回复
热议问题