Page 1 of 1

Need help: Access forbidden!

PostPosted: 30. October 2009 22:21
by jlaursen
Hello all... im working on a online game so i put it up whit hamachi. It have worked but now i get this page:
Access forbidden!

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

If you think this is a server error, please contact the webmaster.

Error 403

5.242.161.151
31-10-2009 00:13:09
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0


HELP PLZ

Re: Need help: Access forbidden!

PostPosted: 30. October 2009 22:55
by Izzy
Read the \xampp\apache\logs\error.log file for more details.

More detail about what you were doing when you received the error message in your browser for example what address did you type in the address bar?

BTW where did you put your files in the xampp tree that you were trying to access in your browser?

Much more detail is required to help you troubleshoot this issue.

Re: Need help: Access forbidden!

PostPosted: 31. October 2009 07:14
by jlaursen
Read the \xampp\apache\logs\error.log file for more details. [Sat Oct 31 09:07:33 2009] [error] [client 5.242.161.151] client denied by server configuration: C:/xampp/htdocs/security_check_token

More detail about what you were doing when you received the error message in your browser for example what address did you type in the address bar?in the address bar i typed my hamachi ip; 5.242.161.151

BTW where did you put your files in the xampp tree that you were trying to access in your browser? HTDOCS


Just say if you need more information.

P.S. In still new using xampp. And thanks for the help in my other post :D

Re: Need help: Access forbidden!

PostPosted: 31. October 2009 08:35
by Izzy
This from C:\xampp\apache\conf\extra\httpd-xampp.conf file which I am not too familiar with as it says, it is a new security concept but it should not be too hard to see how it is already configured and is just a case of adding your Hamachi IP range.
#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 5.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
Perhaps add your Hamachi IP range in red above to the list.

Save the file then restart Apache but first make a Copy of httpd-xampp.conf file in case it won't allow Apache to start - and if Apache won't start after the edits then read the error.log file again then paste the error here.

Good luck.

And thanks for the help in my other post
BTW - Please post a reply in your other post to let others know if the fix that I posted helped with your issue as a post that is not closed in this way leaves an annoying blank for others searching for a similar known fix - it's just standard forum etiquette. ;)
Thanks.

Re: Need help: Access forbidden!

PostPosted: 31. October 2009 09:28
by jlaursen
Yo...thanks again...
you are really good at this stuff