unblocking lan access

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

unblocking lan access

Postby jordan30001 » 30. September 2011 20:07

xampp 2.5
im getting the folowing error when accesing my site over the network
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
09/30/11 19:59:49
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

i looked in the cofig file and found
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
but i dont know what to change and i also need to do this over the internet aswell as the network so how would i acomplish this?
Posts: 4
Joined: 29. September 2011 23:41

Re: unblocking lan access

Postby Sharley » 30. September 2011 21:15

jordan30001 wrote:xampp 2.5
No such XAMPP version (it is found in the readme_en.txt file in the xampp folder) also you omitted your Windows version.

To allow LAN access change the section in the httpd-xampp.conf file so it looks like this but first, as best practice, always make a back up copy of any files you edit in XAMPP
Code: Select all
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 \
               fc00::/7 \

    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var

Access from the Internet is enabled by default but not by using your IP from your own PC unless you use a web proxy for example - see the many forum posts on this subject.

Good luck :)
User avatar
AF Moderator
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 61 guests