404 message when http:/local-domain-name but OK on 127.0.0.1

Problems with the Windows version of XAMPP, questions, comments, and anything related.

404 message when http:/local-domain-name but OK on 127.0.0.1

Postby bhende19 » 07. February 2011 04:41

When I try to bring up the index.html at http:/local-domain-name I get a 403. But when I bring up 127.0.0.1 it displays web page just fine. I want to make visible to all of my network. Messages is

--->
Access forbidden!
New XAMPP security concept:
Access to the requested directory 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
ocala
2/6/2011 7:37:47 PM
Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
<-----------

I looked at the script but do not know how to fix it. here is the code in question:

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>


Thanks
bhende19
 
Posts: 8
Joined: 26. July 2008 04:36
Location: Dallas, TX, USA

Re: 404 message when http:/local-domain-name but OK on 127.0

Postby Altrea » 07. February 2011 06:41

The security concept just saves the sensitive parts of xampp (administration tools, etc.).
So this shouldn't affect your own files (exept you save them in the htdocs\xampp folder).

Please tell us where do you save your index.html file?
And what URL does your Browser Adress bar tell you you get the 403 error?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: 404 message when http:/local-domain-name but OK on 127.0

Postby bhende19 » 07. February 2011 07:00

My index.html is in the htdocs folder.

computer name is ocala.

can access file if I use 127.0.0.1 but not if I use http:/ocala - this is when I get the 403 message and I want to be able do that. I can do it on the older versions of xampp but the new 1.7.4 has this new security feature I want to correct. Again I just want to correct/edit the script (see first posting) but I don't understand the scripting language.
bhende19
 
Posts: 8
Joined: 26. July 2008 04:36
Location: Dallas, TX, USA

Re: 404 message when http:/local-domain-name but OK on 127.0

Postby Altrea » 07. February 2011 07:27

Again, what does your Browser Adress bar say?
A index.html file in your root htdocs folder SHOULD NOT be affected by the new security concept.

I believe, that you don't request the index.html file directly by the full url (including a index.html at the end). And if you don't do so, not the index.html file is loaded, but the index.php file which directly redirects you to the htdocs\xampp folder. Buit without giving us the information we need, only you have all the information needed to solve your issue.

P.S.: Do you try to access your file with your computername in the url? :shock:
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 119 guests