"Put Online" button doesn't work
Posted by: prows (---.slkc.qwest.net)
Date: March 21, 2013 05:29AM

Brand new installation of wamp. I can access the www directory from local host but when I attempt to access from outside my network apache gives me "403 Forbidden You don't have permission to access / on this server."

Much websurfing and the reading of way more documentation than most ameturs have the patience for. And I've been able to isolate the problem to this httpd.conf file. Where the root directory is limited by "require local". I changed this to "require all granted" and it looks like this:


DocumentRoot "c:/wamp/www/"
<Directory "c:/wamp/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org]
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
# Online --> Require all granted
# onlineoffline tag - don't remove
#Require local
Require all granted

</Directory>


BUT now my online offline button doesn't work. Is there a proper more sophisticated fix for this?

Options: ReplyQuote
Re: "Put Online" button doesn't work
Posted by: stevenmartin99 (Moderator)
Date: March 21, 2013 07:28AM

Follow this exactly as written even if it makes no logical sense!


1. Delete the # in front of "require local"

2. Delete the line "Require all granted"


So it should look like

# Online --> Require all granted
# onlineoffline tag - don't remove
Require local


3. Save and restart wamp and then toggle the put online/offline button 4 times and it will start working.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 03/21/2013 07:29AM by stevenmartin99.

Options: ReplyQuote
Re: "Put Online" button doesn't work
Posted by: prows (---.slkc.qwest.net)
Date: March 22, 2013 01:53AM

Well, if I just change it back to the way it was before I fixed it:

# Online --> Require all granted
# onlineoffline tag - don't remove
Require local
#Require all granted

Then I have the same problem I had in the first place. I can access it from Localhost but it's Forbidden from an external ip. (And the online offline button doesn't do anything).

I would like to be able to access it from an external ip when it's online and not when it's offline.

Options: ReplyQuote
Re: "Put Online" button doesn't work
Posted by: stevenmartin99 (Moderator)
Date: March 22, 2013 07:57AM

U didnt follow the Instructions.

I said delete , not comment out.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.