I am trying to set up xampp to allow me to access the application from other computers. I think I am close to having things set up properly...however, I am running into an issue.
When I try to access xampp from another computer using the IP address for the computer with xmapp installed, I get the access forbidden error many others also get (below).
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".
I was also getting the same error when trying to access xampp using the IP address on the computer where I installed xampp.
To allow access from anything, someone recommended that I delete everything below from the \xampp\conf\extra\httpd-xampp.conf file:
#
# 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
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
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
This worked when I did it, however, I am concerned about security vulnerability. So, my next thought was to try to enable access to the IP address as well...so I added (see red)
#
# 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
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
Allow from ::1 xxx.xxx.x.xxx (the computer's IP address)
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
When I did this, I was able to open xampp by typing either localhost or the IP address from the computer where xampp is installed. However, I still get the forbidden access error from another computer.
What do you recommend I do to allow access from another computer while limiting security risks?
Thank you!
Caprice