Page 1 of 1

How to load phpmyadmin dont used localhost

PostPosted: 16. December 2012 05:32
by churongcon
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

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

PostPosted: 16. December 2012 13:18
by JonB
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

Re: How to load phpmyadmin dont used localhost

PostPosted: 16. December 2012 17:27
by Altrea
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

Re: How to load phpmyadmin dont used localhost

PostPosted: 16. December 2012 20:20
by JonB
I think he knew that and used 123.456.789 instead of his true last 3 quads

But I could be wrong too...

:mrgreen: