.htaccess

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

.htaccess

Postby kirkwesterbroek » 27. September 2006 19:10

I wanted to know where you are able to control the rights from where to access some pages. Because, I want my phpmyadmin only be accesseble from the localhost and not from other computers in the network and i was curious where to control it for the security.php page as well. I know you can do it with a .htaccess file but I don't no where they are in the xampp folder.

Kirk
kirkwesterbroek
 
Posts: 2
Joined: 27. September 2006 18:55

Re: .htaccess

Postby Izzy » 28. September 2006 02:56

kirkwesterbroek wrote:I wanted to know where you are able to control the rights from where to access some pages. Because, I want my phpmyadmin only be accesseble from the localhost and not from other computers in the network and i was curious where to control it for the security.php page as well. I know you can do it with a .htaccess file but I don't no where they are in the xampp folder.

Kirk

I am not too sure what you are trying to achieve here but a .htaccess file goes in the root directory of where ever you want to restrict access to. It will be effective for that directory and all subdirectories under that tree.

You will already find a .htaccess file in the xampp\htdocs\xampp directory if you set a user/password in Security to protect your XAMPP directories.
Quote from the XAMPP Welcome Page wrote:To fix the problems for mysql, phpmyadmin and the xampp directory simply use

=> http://localhost/security/xamppsecurity.php <= [allowed only for localhost]


phpMyAdmin can be protected by giving the root user a password, which is set from the Security page, for mySQL. It uses the same root/password combination as mySQL.
That means it is only accessible by the root user from the http://localhost/phpmyadmin address.

So by following the advice on the Security page you will restrict your XAMPP directories and your phpMyAdmin to http://localhost - which is only your PC and is not accesible from the Internet or your local network.

Anything else you want to know will be better served by being much more specific.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby kirkwesterbroek » 28. September 2006 12:31

Thank you,

I just want to change the permissions for whether to acces from out of the network or not for my security.php page and phpmyadmin.

But i cant control that in the .htaccess file inxampp\htdocs\xampp you called.
kirkwesterbroek
 
Posts: 2
Joined: 27. September 2006 18:55

Postby Izzy » 28. September 2006 22:21

kirkwesterbroek wrote:Thank you,

I just want to change the permissions for whether to acces from out of the network or not for my security.php page and phpmyadmin.

But i cant control that in the .htaccess file inxampp\htdocs\xampp you called.
Then put a .htacces file in any directory you want to protect like I mentioned in my first paragraph above.

Be advised that the .htaccess file is only parsed by the Apache server. So if you use a browser and type an http:// address that is recognised by the Apache server then it will only restrict access to the DocumentRoot tree depicted in the httpd.conf files. Those paths not recognised will be covered by the Apache error system.

Which means any files or directories not in this path will be available to your internal network no matter what you do at server level. You would need to restrict access using the Windows permissions system for your network configuration - which is not an XAMPP subject that is covered here.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 83 guests