Skip to content
Advertisement

WAMP 403 forbidden from external sources

I have read a ton of threads here and elsewhere but none of the suggestions have worked. I installed the latest version of WAMP 64 bit on a fresh install of Windows Server 2012 R2.

  • I created a subdirectory within the www directory called andrew. In that is an index.html file.

  • I added the following to the hosts file:

    JavaScript
  • I added the following to the httpd-vhosts.conf file:

    JavaScript
  • I uncommented the virtual hosts line in httpd.conf

  • I stopped and started net dnscache
  • I restarted the WAMP services
  • I “Put Online” the WAMP server

Regardless, when I access the server from another machine like [server IP address]*/andrew/index.html I get a 403 Forbidden error.

Here is the apache error log (“[SERVER IP]” is really the server’s actual IP):

JavaScript

I am now thinking it has to do with some setting on Windows 2012 Server, but I can’t figure it out. Help.

Advertisement

Answer

Because Apache doesn’t know to associate the IP address with your virtual host, it uses the main server settings. Probably you don’t need a virtual host at all, but try this anyway:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement