WAMP server not running after enabling httpd-vhosts.conf

前端 未结 3 1773
野的像风
野的像风 2021-02-13 20:29

I tried enabling Virtual Host on my WAMP installation, but WAMP server will not run if I enable http-vhosts.conf, and the icon remains orange.

Here is my hosts file:

3条回答
  •  旧巷少年郎
    2021-02-13 20:40

    You just need to change it like as this: everything will be OK.

    
        ServerAdmin webmaster@localhost
    #    DocumentRoot "c:/wamp/www"
        ServerName localhost
    #    ErrorLog "logs/localhost-error.log"
    #    CustomLog "logs/localhost-access.log" common
    
    
    #    DocumentRoot "c:/wamp/www/test"
    #    ServerName test.localhost
    
    

    If somebody has error of Directory, he may need to modify it like below:

    
    #    DocumentRoot 'c:\wamp\www\media_weber_edu\public'
         ServerName media.weber.dev
    #    
    #        Options Indexes FollowSymLinks MultiViews
    #       AllowOverride all
    #    <\Directory>
    
    

    notes: Apache does not allow multiple arguments!

提交回复
热议问题