{panel}
Access to XAMPP is controlled by using a simply *username* and *password*. It is recommended that XAMPP be further locked down allowing access to specified IP addresses. This can be accomplished by making modifications to the apache *httpd-xampp.conf* configuration file as described below:\\
Below is the *http-xampp.conf* files that is initially installed by the XAMPP installer.\\
\\
\\
Edit *c:\xampp\apache\conf\extra\httpd-xampp.conf* and canfind bethe foundentry atshown *c:\xampp\apache\conf\extra*.below:\\
\\
*Original httpd-xampp.conf*
{code}
<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 \
::2 18.18.4.232 \
::3 18.18.1.125 \
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
</LocationMatch>
{code}
\\
Two things must be done in order to control access via IP addresses.\\
\\
FIRST: In the *original httpd-xampp.conf*, notice that each *Directory* directive has it's own *Order*, *Deny* and *Allow from* element. To control access via IP addresses, the *Order*, *Deny* and *Allow from* elements must be removed from all the *Directory* directives.\\
\\
SECOND: Insert the *LocationMatch* directive below at end of the *httpd-xampp.conf* file. The IP addresses 18.19.1.231 and 18.19.5.190 are included only as an example of how to enable an IP address. Be sure to change (or remove) these 2 IP address to suit your requirements.\\
\\
You must *restart apache* after you have made and saved these changes to *httpd-xampp.conf*.\\
\\
You can download a completed version of [^httpd-xampp.conf] directly from this page.
{code}
#
# New XAMPP security concept
#
<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
</LocationMatch>
{code}
{panel} |