1 (edited by jma 2009-07-06 14:21)

Topic: Added my own .htaccess to punbb dir. Causes, 500:Internal Server Error

I'm trying to put a password on a directory where punbb is installed. So that the punbb forum is password protected.
I've tried to do this by adding an (extra) .htaccess file which points to a .htpasswd file.
When i go to the forum i get the user/password popup. I fill out the username and password and then i'm supposed to enter the forum. However instead of entering the forum i get a 500:Internal Server Error.

Perhaps it's because the punbb directory already contains an .htaccess.dist. My extra .htaccess file might conflict things, but i'm not sure. Does anyone know how i can achieve what i'm intending to do without getting an internal server error?

The code in my .htaccess file:

AuthUserFile /absolute/path/to/.htpasswd
AuthName login
AuthType Basic

Require valid-user

I've also tried to put the above code directly into punbb's original .htaccess.dist , but then i didn't get a user/password popup. (It did not seem to work)

2

Re: Added my own .htaccess to punbb dir. Causes, 500:Internal Server Error

It has been fixed. It turned out there was an error in the absolute path in my own .htaccess.