Page 1 of 1

unblocking lan access

PostPosted: 30. September 2011 20:07
by jordan30001
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
192.168.1.103
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 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
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?

Re: unblocking lan access

PostPosted: 30. September 2011 21:15
by Sharley
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 127.0.0.0/8 \
               fc00::/7 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

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 :)