by xamppapache » 03. May 2012 10:34
Hi All,
What Nobbie mentioned here is exactly correct. Before proceeding further I thank Nobbie for his contribution and guidance. I also had the problem running XAMPP from another system in our LAN. As Nobie guided us, I made the following changes in C:\xampp\apache\conf\extra\httpd-xampp.conf file.
Note: - The xampp-win32-1.7.7-VC9-installer was installed in our Windows Server 2008 system.
*****************************************************************************************
#
# New XAMPP security concept
#
# Close XAMPP security section here
<LocationMatch "^/(?i:(?:security))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 192.168.3.5/32 192.168.3.26/32
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 192.168.3.5/32 192.168.3.26/32
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
*****************************************************************************************
In the above configuration, the only change is that I've added "192.168.3.5/32 192.168.3.26/32" at the end of the line " Allow from ::1 127.0.0.0/8 ". Please note that after each IP address/mask there must be a space before entering the next IP or range of IPs. Also, I've used mask as /32 because I need to allow only specific IP's of the host computers which I access from and so it is more secure than simply commenting all and putting your computer security at risk.
If you want to specify a network then after "Allow from ::1 127.0.0.0/8" followed by a space (no quotes required), type in the network; for example:- If you want to have an enter 192.168.3.0 network then enter it as 192.168.3.0/24. It'll make sure that you'll be able to access XAMPP Server from the LAN which has any of the IP's in the range 192.168.3.1 - 192.168.3.254.