httpd-xampp.conf: How to allow access to an external IP besides localhost?

xampp mysql allow remote access
httpd-xampp.conf location
httpd-xampp.conf mac
xampp restrict access to localhost
xampp allow access to directory
how to access localhost (xampp)
phpmyadmin allow remote access to database
how to change localhost to ip address in xampp

I haven't found the right answer that works for me in other questions. This is how the httpd-xampp.conf looks like originally:

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

What should I do if I want to add another IP address besides the Require local?

For example, below Require local I have tried the following:

allow from xxx.xxx.xxx.xx

That is to say:

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
        allow from xxx.xxx.xxx.xx
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

But it still blocks the access to that external IP.

How do I fix this? How can I add more IP addresses to allow them access?

I am using XAMPP 5.6.3 under a Windows environment.

allow from all will not work along with Require local. Instead, try Require ip xxx.xxx.xxx.xx

For Example:

# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Require local
    Require ip 10.0.0.1
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

How to allow access to an external IP from my localhost?, httpd-xampp.conf: How to allow access to an external IP besides localhost? - apache. XAMPP : How to allow access to an external IP besides l… Notify me of new comments via email. Notify me of new posts via email.

I tried this and it works. Be careful though. This means that anyone in your LAN can access it. Deepak Naik's answer is safer.

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    # Require local
    Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

httpd-xampp.conf: How to allow access to an external IP , To enable remote access to phpMyAdmin from other hosts, follow these steps: 1) Edit the apache/conf/extra/httpd-xampp.conf file in your XAMPP local" Directive with a Require ip whitelist of the IPs you want to allow  Now, the problem is that XAMPP has a configuration file that overrides the utility paths and allows access for anyone. To fix this, perform a search and replace in the (in Apache/Conf/Extra) "httpd-xampp.conf" file to change "Allow from all" to "Allow from 127.0.0.1". Now, all of the XAMPP directories will only be served locally. Conclusion

<Directory "C:/xampp/">
    AllowOverride AuthConfig Limit
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

This is what i added in the end of file \xampp\apache\conf\extra\httpd-xampp.conf file before tag

Enable Remote Access to phpMyAdmin 7.0.8, httpd-xampp.conf: How to allow access to an external IP besides localhost? Question. i haven't found the right answer that works for me in other questions. Step-1: Go to exampp server and locate "httpd-xampp.conf" file from this location "C:\xampp\apache\conf\extra". Step-2: Open this file in notepad and search "phpmyadmin" keyword. Step-3: Find this

Add below code in to file d:\xampp\apache\conf\extra\httpd-xampp.conf:

<IfModule alias_module>
...
    Alias / "d:/xampp/my/folder/"
    <Directory "d:/xampp/my/folder">
        AllowOverride AuthConfig Limit
        Order allow,deny
        Allow from all
        Require all granted
    </Directory>

Above config can access from http://127.0.0.1/

Note: someone suggest that replace from Require local to Require all granted but not work for me

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    # Require local
    Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

httpd-xampp.conf: How to allow access to an external IP , How to access XAMPP from external address – HTTP and MySQL you can open a connection from any IP address to your XAMPP server. for Apache go to the following line “c:\xampp\apache\conf\extra\httpd-xampp.conf” and do a deny,allow #Deny from all Allow from ::1 127.0.0.0/8 ErrorDocument  For Ubuntu xampp, Go to /opt/lampp/etc/extra/ and open httpd-xampp.conf file and add below lines to get remote access, Order allow,deny Require all granted Allow from all in /opt/lampp/phpmyadmin section. And restart lampp using, /opt/lampp/lampp restart

For Ubuntu xampp,
Go to /opt/lampp/etc/extra/
and open httpd-xampp.conf file and add below lines to get remote access,
    Order allow,deny
    Require all granted
    Allow from all

in /opt/lampp/phpmyadmin section.

And restart lampp using, /opt/lampp/lampp restart

How to access XAMPP from external address, Click on apache > config > Apache (httpd.conf) Search for ServerName localhost:80 and replace with your local ip:8080 How can I remotely access my home computer from outside my home internet Configure a Static IP Address on your server running XAMPP & configure the firewall to allow connections to port 80. This is a tutorial on how to access and control the Apache server using Xampp from a remote machine. For you to access the server from a remote machine ensure that both machines are connected to a

How to access Localhost (XAMPP) from another computer over the , XAMPP : How to allow access to an external IP besides localhost ? Ubuntu : $ cd /opt/lampp/etc/extra/ $ sudo nano httpd-xampp.conf Alias  The other answers so far seem to advocate the complete replacement of the <Directory/> block, this is not needed and may remove extra settings like the 'AddDefaultCharset UTF-8' now included.

XAMPP : How to allow access From external. – KitDEE Studio, Find your local IP address; Configure XAMPP to allow access from your next to Apache, click on the Config button and open httpd-xampp.conf: StackOverflow: How do you access a website running on localhost from  Important XAMPP Security Fix. Hi Apache Friends! We have just released new versions of all XAMPP supported versions for Windows, Linux and OS X: 7.0.3-1, 5.6.15-2 and 5.5.30-7.

Accessing your Local Web Server from a Mobile Device using XAMPP, httpd-xampp.conf: How to allow access to an external IP besides localhost? What should I do if I want to add another IP address besides the Require local ? If you get forbidden access then see this question WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server. Basically, change the occurrances of deny,allow to allow,deny in the httpd.conf file. You can access this by the WAMP menu. To eliminate possible causes of the issue for now set your config file to

Comments
  • Hello ! i have installed xampp on windows server 2012. i have a public IP and entered like this "Require ip my-ip" still i can't access my localhost from IP Thanks
  • can you share the main steps described in the youtube link here, so your answer is still helpful if the video is no longer available?