Page 1 of 1

htaccess Problem

PostPosted: 20. August 2006 10:53
by thekingofcaseys
OK read the forum but nothing i could find on this problem.

Installed xampp all fine changed document root for my websites to

srv/domains/DOMAIN NAMES


however kept document root at

Program Files/xampp/htdocs


So problem is if i place a .htaccess file into HTDOCS and type in LOCALHOST in my browser i get the pop up box for username and password Now if i place the htaccess file in the root of my website i get nothing.

my question is how do i get my sites to use the htaccess file,

the url in question is www.seeders.co.uk

PostPosted: 20. August 2006 11:32
by Izzy
Are you using the same .htaccess file in both locations?

This is not possible as the .htaccess for your htdocs directory refers to an xampp.user file in the xampp/security directory that is encrypted with the password and the htdocs directory path.

You will need to create another .htaccess/.htpasswd pair for your web site directory.

Google for generators.

PostPosted: 20. August 2006 14:51
by thekingofcaseys
i created a new htaccess file but nothing works it still shows the site and i used the generator also that didnt work

Example:

htaccess
AuthUserFile /srv/www/seeders.co.uk/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic

<limit GET POST>
require valid-user
</limit>


password file

Test:Tegj/We2QdsGU


Both placed in website root but still nothing works

PostPosted: 21. August 2006 15:39
by maxnorris
thekingofcaseys wrote:i created a new htaccess file but nothing works it still shows the site and i used the generator also that didnt work

Example:

htaccess
AuthUserFile /srv/www/seeders.co.uk/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic

<limit GET POST>
require valid-user
</limit>


password file

Test:Tegj/We2QdsGU


Both placed in website root but still nothing works


Your file locations look Linux-ish.. AuthUserFile and AuthGroupFile in your setup above is listing a folder structure with it.. is that actually the folder structure that's on your system? It won't work if it cant find the files.

PostPosted: 21. August 2006 16:56
by WorldDrknss
Test:Tegj/We2QdsGU

This is not an Apache Specific Password

Here is a correct .htaccess and .htpasswd

.htaccess
AuthUserFile /srv/www/domain.com/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic

<limit GET POST>
require valid-user
</limit>


.htpasswd
Admin:$apr1$zE3.....$nGJTynddgh/FcLX5P10CN0