How to load phpmyadmin dont used localhost

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

How to load phpmyadmin dont used localhost

Postby churongcon » 16. December 2012 05:32

How to load phpmyadmin dont used localhost

Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|webalizer|server-status|server-info))">
   <RequireAny>
    Require ip ::1 27.123.456.789/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
   </RequireAny>
   ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


Ex: i want load phpmyadmin from ip my server http://27.123.456.789/phpmyadmin


Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

27.123.456.789
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7
churongcon
 
Posts: 1
Joined: 16. December 2012 04:27
Operating System: Linux

Re: LAMPP 1.8.1 fix for phpMyAdmin + 'new Security Concept'

Postby JonB » 16. December 2012 13:18

Code: Select all
 Require ip ::1 27.123.456.789/8 \


should be

Code: Select all
 Require ip ::1 27.123.456.789 \


the /8 is CIDR notation for the size of the class

or a network/nnn CIDR specification


http://httpd.apache.org/docs/2.4/howto/access.html#host

http://en.wikipedia.org/wiki/Classless_ ... in_Routing

:)


ysfg
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How to load phpmyadmin dont used localhost

Postby Altrea » 16. December 2012 17:27

churongcon wrote:Ex: i want load phpmyadmin from ip my server http://27.123.456.789/phpmyadmin

27.123.456.789 is not a valid ip
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

Re: How to load phpmyadmin dont used localhost

Postby JonB » 16. December 2012 20:20

I think he knew that and used 123.456.789 instead of his true last 3 quads

But I could be wrong too...

:mrgreen:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 11 guests