Windows 8 - 403 Forbidden
Posted by: michat34 (---.home.aster.pl)
Date: November 10, 2012 06:24PM

i have this error when trying to connect via localhost. i have already tried to configure it following the instructions on some forums but with no results. here is how my http.conf looks like:

# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin admin@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "c:/wamp/www/"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<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.
#

# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
Allow from 127.0.0.1

</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

any ideas what to change?

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: stevenmartin99 (Moderator)
Date: November 10, 2012 06:26PM

Put everythign back the way it was, the issue is not with wamp, but with the hosts file in windows

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

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: michat34 (---.home.aster.pl)
Date: November 10, 2012 06:53PM

ok i did. so now, how can i configure that host file in windows?

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: WiraNaga (175.143.239.---)
Date: November 12, 2012 03:29PM

have you try [127.0.0.1]
I can access using that but still unable to use [localhost].
Still searching for the solution.

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: RiggsFolly (---.as13285.net)
Date: November 12, 2012 03:56PM

edit your host file and add the line that makes localhost work

c:\windows\system32\drivers\etc\hosts ( no extension )

Make sure this line exists in the file


127.0.0.1 localhost




The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
left click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: shortdogmb (---.mybh.sc.frontiernet.net)
Date: November 14, 2012 10:01PM

Order allow,deny change that see if it helps

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: cats_five (---.interdsl.co.uk)
Date: November 19, 2012 09:37AM

I have the same problem with W7 & IE9. Localhost is in my hosts file - twice - and Chrome doesn't have the problem so that won't be it, or shouldn't be.

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: kivikall (---.bb.dnainternet.fi)
Date: November 22, 2012 03:02PM

The solution for this problem can be found from this thread [forum.wampserver.com]

"Modify the apache HTTPD.CONF file. Change "Listen 80" to "Listen 0.0.0.0:80". (FIXES 403 FORBIDDEN ERROR)"

Just to make sure people who end up here (like me) can easily found the solution.

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: shtaussie (---.static.internode.on.net)
Date: February 23, 2013 11:34AM

kivikall Wrote:
-------------------------------------------------------
> The solution for this problem can be found from
> this thread
> [forum.wampserver.com]
>
> "Modify the apache HTTPD.CONF file. Change "Listen
> 80" to "Listen 0.0.0.0:80". (FIXES 403 FORBIDDEN
> ERROR)"
>
> Just to make sure people who end up here (like me)
> can easily found the solution.

This solution worked for me on
Win 8 with WampServer 2.2.22
thanks heaps
PeteH - Web South

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: stat30fbliss (---.uvs.cicril.sbcglobal.net)
Date: March 05, 2013 06:25PM

I am on Win8 with WAMPServer 2.2, and this solution did not work for me....

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: Alip (109.162.145.---)
Date: March 08, 2013 09:18AM

I had this problem and i did all solutions but didn't work.
I added an alias directory and it worked for me on win8.

1.you can simply click on 'Add an alias' by clicking on Apache folder.
2.write 127.0.0.1 instead 'test ' and enter
3.point c:/wamp/www to 127.0.0.1 and enter

Options: ReplyQuote
Re: Windows 8 - 403 Forbidden
Posted by: al cruz (---.virtua.com.br)
Date: February 27, 2014 12:32AM

Hey, PeteH- Web South!

Thanks a lot!

It works with me pretty well, I'm more than a week working on it.

Al Cruz
Manaus- Amazon- Brazil

Options: ReplyQuote


Sorry, only registered users may post in this forum.