Access is only available on the local network ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Access is only available on the local network ?

Postby Morbakos » 20. October 2017 08:58

Hello,

When I try to connect to my Xampp server with another machine, it display that "Access to the requested object is only available on the local network. This parameter can be configured in the "httpd-xampp.conf" file." But I don't know what to change in this file. Can someone help me ?

Thank you !
:)
Morbakos
 
Posts: 3
Joined: 20. October 2017 08:54
XAMPP version: 3.2.2
Operating System: Windows Server 2012

Re: Access is only available on the local network ?

Postby Morbakos » 24. October 2017 08:15

Up !
Morbakos
 
Posts: 3
Joined: 20. October 2017 08:54
XAMPP version: 3.2.2
Operating System: Windows Server 2012

Re: Access is only available on the local network ?

Postby Morbakos » 24. October 2017 10:16

Ok so I asked the same question to another forum, and someone respond that you have to change this :

Code: Select all
<Directory "C:/xampp/phpMyAdmin">
    AllowOverride AuthConfig
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>


into this :

Code: Select all
<Directory "C:/xampp/phpMyAdmin">
     AllowOverride AuthConfig Limit
     Order allow,deny
     Require all granted
     Allow from all
</Directory>
Morbakos
 
Posts: 3
Joined: 20. October 2017 08:54
XAMPP version: 3.2.2
Operating System: Windows Server 2012

Re: Access is only available on the local network ?

Postby Nobbie » 24. October 2017 13:47

As you can see, this only affects PhpMyAdmin. If you put your own documents (HTML and PHP) into htdocs folder (or a subfolder), there is no need to change any permission. You can simply run it from everywhere you like.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Access is only available on the local network ?

Postby Altrea » 24. October 2017 14:17

Morbakos wrote:Ok so I asked the same question to another forum, and someone respond that you have to change this :

Code: Select all
<Directory "C:/xampp/phpMyAdmin">
    AllowOverride AuthConfig
    Require local
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>


into this :

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

This is a poor change.
1st: Why should anybody be able to access your phpMyAdmin? Why not one specific IP or a range of IP adresses?
2nd: Allow from and Order are old Apache 2.2 access syntax. I would not recommend to use them anymore.

My recommendation would be something like this:

Code: Select all
<Directory "C:/xampp/phpMyAdmin">
    AllowOverride AuthConfig
    #Require ip yourip1 yourip2 etc for example:
    Require ip 127.0.0.1 192.168.0.10
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Suggestion to change the message text

Postby steve_t » 29. October 2017 00:10

Hello,

When a computer on the local network tries to access phpMyAdmin the "Access to the requested directory is only available from the local network" message appears. To be more accurate, this message should probably be changed to something like "Access to the requested directory is only available from the local machine/computer" or "Access to the requested directory is only available to the XAMPP host computer."

For additional information on this, see:
https://learnwebcoding.com/misc/install ... rityPolicy

As you well know, the message text is from the \xampp\apache\errorXAMPP_FORBIDDEN.html.var file, which the \xampp\apache\conf\extra\httpd-xampp.conf file refers to.

Regards,

Steve
steve_t
 
Posts: 15
Joined: 18. December 2014 04:28
XAMPP version: 5.6.24
Operating System: Windows Vista/7/8.1/10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 133 guests