New XAMPP security concept

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

New XAMPP security concept

Postby ZedDreppelin » 26. October 2011 01:48

Greeetings again everyone :)

I went through the process of port forwarding my router but when I type in its ip address I get this messsage:

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".


--------------------------------------------------------------------------------
Now, if I type in "localhost" everything is fine, but I don't know if this will cause any problems if I try accessing this page from a remote computer.

any and all help, thank you
ZedDreppelin
 
Posts: 4
Joined: 23. October 2011 21:33
Operating System: windows xp

Re: New XAMPP security concept

Postby Sharley » 26. October 2011 01:57

Hello and welcome back. :)

Replace in the relevant second section of the security concept in the httpd-xampp.conf file to match the below code snippet which will permit a range of LAN IP addresses and hopefully should get you out of this access from the LAN issue:
Code: Select all
    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
Remember to make a backup 'copy of' before editing, then save the file and restart Apache.

The default section will only permit access to XAMPP's back end files and folders from localhost.

Also the \xampp\security folder is only allowed access from localhost, for obvious reasons, as per the first section of the security concept.

Good luck. :)
User avatar
Sharley
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: Gredyet and 123 guests