Page 1 of 1

How to enable LAN Network

PostPosted: 01. December 2017 09:01
by narendran.myd
Hi am using xampp 7.1.11 am trying to enable LAN access, But in this version httpd-xammp.conf file has no security rules.
Kindly anyone assit me to enable lan access for this vesion

Thanks in Advance
Naren

Re: How to enable LAN Network

PostPosted: 01. December 2017 13:39
by Nobbie
narendran.myd wrote:But in this version httpd-xammp.conf file has no security rules.


What do you mean by that? And what is your problem?

Re: How to enable LAN Network

PostPosted: 01. December 2017 14:14
by narendran.myd
Hello Nobbe, Thanks for your kind reply

i want to make my xampp should be accessable in LAN, I had found in google like to remove the following code from httpd-xampp.conf

#
# 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>

But in Xampp version 7.1.11 has no such lines in the mentioned file, I want to know how to enable lan access for this version

Re: How to enable LAN Network

PostPosted: 01. December 2017 14:33
by Nobbie
Xampp is accessible in the LAN anyway. Simply enter the LAN IP of the Xampp Server into the clients browser, i.e. http://192.168.1.10 or similar. The Xampp Dashboard should appear. Put your documents into htdocs folder (like test.php) and access it via http://192.168.1.10/test.php (replace the LAN IP).

Only Administration of MySQL via phpmyadmin is protected in Xampp and can only accessed via localhost. There should be the line "Require local", i dont know if it has been removed by Bitnami. But anyway, you dont need to modify anything in order to access your own files in htdocs.

P.S.: Your documentation is outdated, the "Require local" clause is in a Directory container for phpmyadmin in the new version (but you should find it anyway, simply search for "Require local", its very easy to find). There is no LocationMatch anymore.