.htaccess 500 Internal Server Error

Web hosting, FTP/database access, mirror services and hosted blogs
Post Reply
Colt
Posts: 40
Joined: Thu Sep 23, 2004 1:17 pm

.htaccess 500 Internal Server Error

Post by Colt » Thu Mar 19, 2009 2:02 pm

Ok, so I don't know how this is meant to work but I have a website at http://home.exetel.com.au/acrossthesevenseas/

I have a family photo album

In the /photo_album folder I have my .htaccess with:

Code: Select all

AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /acrossthesevenseas/admin/.htpasswd
AuthGroupFile /dev/null 
require valid-user
in /admin I have my .htpasswd file with:

Code: Select all

user:YDqdvanlEcC3k
which was generated using http://tools.dynamicdrive.com/password/

Now when I go to /photo_album I get a 500 Internal Server Error.

I've never done this before so I have no idea if I've stuffed up something.

Website works if I remove the two files.

JasonM

Re: .htaccess 500 Internal Server Error

Post by JasonM » Thu Mar 19, 2009 2:08 pm

Colt wrote:Ok, so I don't know how this is meant to work but I have a website at http://home.exetel.com.au/acrossthesevenseas/

I have a family photo album

In the /photo_album folder I have my .htaccess with:

Code: Select all

AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /acrossthesevenseas/admin/.htpasswd
AuthGroupFile /dev/null 
require valid-user
in /admin I have my .htpasswd file with:

Code: Select all

user:YDqdvanlEcC3k
which was generated using http://tools.dynamicdrive.com/password/

Now when I go to /photo_album I get a 500 Internal Server Error.

I've never done this before so I have no idea if I've stuffed up something.

Website works if I remove the two files.
The path should be the full path to your home directory - /home/freeweb/web/acrossthesevenseas/public_html/admin/.htpasswd

Colt
Posts: 40
Joined: Thu Sep 23, 2004 1:17 pm

Re: .htaccess 500 Internal Server Error

Post by Colt » Thu Mar 19, 2009 2:16 pm

Oh right, so

Code: Select all

home.exetel.com.au/acrossthesevenseas/public_html/admin/.htpasswd
Sorry, still confused I really have very little understanding of all this.

I also don't have a public_html folder, is this a problem?

JasonM

Re: .htaccess 500 Internal Server Error

Post by JasonM » Thu Mar 19, 2009 2:19 pm

Colt wrote:Oh right, so
Sorry, still confused I really have very little understanding of all this.
Set the .htaccess file as below:

Code: Select all

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/freeweb/web/acrossthesevenseas/public_html/admin/.htpasswd
AuthGroupFile /dev/null
require valid-user
Then, ensure admin/.htpasswd contains the below

Code: Select all

user:YDqdvanlEcC3k

Colt
Posts: 40
Joined: Thu Sep 23, 2004 1:17 pm

Re: .htaccess 500 Internal Server Error

Post by Colt » Thu Mar 19, 2009 2:25 pm

Oh yay, you're my hero!

Thanks for spelling it out in black and white. I never would have picked it otherwise, I just don't understand what the extra listings have to do with anything. :oops:

Dazzled
Volunteer Site Admin
Posts: 6003
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: .htaccess 500 Internal Server Error

Post by Dazzled » Thu Mar 19, 2009 3:35 pm


Post Reply