WAMP 403 Forbidden message on Windows 7

后端 未结 26 1692
抹茶落季
抹茶落季 2020-11-27 12:51

I have installed WAMP version 2.1 on my windows 7 machine. When i browse to localhost in my browser, the WAMP server page is visible.

But when I browse to my IP in m

26条回答
  •  情书的邮戳
    2020-11-27 13:16

    It took me forever to figure this out.

    C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf

    In this file you will notice several example virtual host files, that look like:

    
        ServerAdmin webmaster@dummy-host.example.com
        DocumentRoot "c:/Apache24/docs/dummy-host.example.com"
        ServerName dummy-host.example.com
        ServerAlias www.dummy-host.example.com
        ErrorLog "logs/dummy-host.example.com-error.log"
        CustomLog "logs/dummy-host.example.com-access.log" common
    
    
    
        ServerAdmin webmaster@dummy-host2.example.com
        DocumentRoot "c:/Apache24/docs/dummy-host2.example.com"
        ServerName dummy-host2.example.com
        ErrorLog "logs/dummy-host2.example.com-error.log"
        CustomLog "logs/dummy-host2.example.com-access.log" common
    
    

    Simply delete these entries and replace with:

    
        ServerAdmin serveradmin@host.com
        DocumentRoot "C:\wamp\www"
        ServerName localhost
    
    

    You definitely need to make sure your other ducks are in a row but this for me with the solution that worked.

提交回复
热议问题