Just finished fixing this issue, is took me a while to figure out.
Problem:When accessing the site form outside of the localhost you see only "403 Forbidden". Locally it's working.
What did I check:1. Played with "Get Online, Get Offline" option, with/without manual restart. Same results.
2. Not a port forwarding issue, because whenever I access my local site from outside I get this line in the access log:
123.123.78.54 - - [10/Aug/2012:12:13:17 +0300] "GET / HTTP/1.1" 403 202
3. With another local AMP stack it is working fine. I have an Acquia from which I moved to WampServer. When I start acquia, I can access my drupal 7 site from outside.
So, the problem is in Apache config. I started to check WampServer's httpd.conf line after line and comparing it to acquia's config and finally I found the issue. In <Directory "C:\wamp\www"> section, about line 266:
# onlineoffline tag - don't remove
Require local
Grrr. "Server Online" the system tray icon says. To solve the problem I just copied Acquia's config for <Directory "C:\acquia\www">. So...
THE SOLUTION: (workaround actually)
In WampServer's Apache's httpd.conf in section <Directory "<Your_wamp_path>\www"> remove or comment out line:
Require local
and paste there:
Order allow,deny
Allow from all
p.s. The comment says:
# Controls who can get stuff from this server.
# Online --> Require all granted
I tried to put "Require all granted" and it didn't work, gave me the same 403 error.
Info for WampServer developers: I'm running this distribution:
wampserver2.2e-php5.4.3-httpd-2.4.2-mysql5.5.24-x64
My system is Windows 7 Ult x64, 6GB. LAN behind aDSL modem-router.
Edited 1 time(s). Last edit at 08/11/2012 12:34PM by Pavlus.