error 403 when not using localhost?
Posted by: acejay (---.atw.suddenlink.net)
Date: July 26, 2012 02:58PM

I have windows 7 64bit and I am running Apache 2.4.2
i can view my page through localhost but not from anywhere else...
i tried another network coming in and also tried webgrind?
i just keep getting the error 403.
i checked my host file and its good to go from what i can tell
any ideas would be greatly appreciated!

Options: ReplyQuote
Re: error 403 when not using localhost?
Posted by: RiggsFolly (---.as13285.net)
Date: July 26, 2012 04:26PM

Wamp manager -> Put Online


This changes the apache configuration which by default only allows access from ip address 127.0.0.1 ( i.e. the pc where wamp is installed ) to any ip in the world.

Options: ReplyQuote
Re: error 403 when not using localhost?
Posted by: acejay (---.atw.suddenlink.net)
Date: July 26, 2012 04:33PM

another thing if anyone is willing to help me troubleshoot i have teamviewer.
I know its not the host file the only thing in there is this

127.0.0.1 localhost
127.0.0.1 localhost


and my httpd.conf reads like this

Documentroot "c:/wamp/www/"
<Directory "c:/wamp/www/">
options indexes followsymlinks
allowoverride all
require local
</directory>

Options: ReplyQuote
Re: error 403 when not using localhost?
Posted by: RiggsFolly (---.as13285.net)
Date: July 26, 2012 04:39PM

Ok send me your TeamViewer ID and Password in a Private Message and I will have a look.

Options: ReplyQuote
Re: error 403 when not using localhost?
Posted by: acejay (---.atw.suddenlink.net)
Date: July 26, 2012 04:39PM

its online and the tray icon is green
i am getting an error code in apache error log....looks like this

[Thu Jul 26 10:36:09.708381 2012] [authz_core:error] [pid 2284:tid 812] [client 192.168.1.1:63521] AH01630: client denied by server configuration: C:/wamp/www/
[Thu Jul 26 10:36:10.129582 2012] [authz_core:error] [pid 2284:tid 812] [client 192.168.1.1:63521] AH01630: client denied by server configuration: C:/wamp/www/favicon.ico

Options: ReplyQuote
Re: error 403 when not using localhost?
Posted by: RiggsFolly (---.as13285.net)
Date: July 26, 2012 04:54PM

You didnt say you have been messing about with the httpd.conf file !!!


What reason did you add the

Require local

to your <Directory "D:/wamp/www/">....</Directory> section.


Try changing that to
Allow All

See if that solves it

Options: ReplyQuote
Re: error 403 when not using localhost?
Posted by: stevenmartin99 (Moderator)
Date: July 26, 2012 04:58PM

i got it solved, he has ipv6 enabled and was missing ::1





btw Riggs - yes , the tutorial you sent me is fine, but maybe could you write it using the httpd-vhosts that is included with apache and could you post some images too into the post to help people ?

thanks,
Steven

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

Options: ReplyQuote
Re: error 403 when not using localhost?
Posted by: vinimonteiro94 (---.58.254.77.static.host.gvt.net.br)
Date: February 09, 2013 02:38AM

Outra forma para corrigir isto é alterar a linha
Other way to fix it is change the line

<Directory />
AllowOverride none
Require all denied
</Directory>

Para
To

<Directory />
AllowOverride none
Require local #ou(or) Require all granted
</Directory>

Atenciosamente,
Vinicius Monteiro
Programador Brasileiro em PHP, JS e C++

Cordially,
Vinicius Monteiro
Brazilian programmer in PHP, JS, C++

Options: ReplyQuote


Sorry, only registered users may post in this forum.