LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Internal Server Error with Password protection of directory using .htaccess/.htpasswd (http://www.linuxquestions.org/questions/linux-newbie-8/internal-server-error-with-password-protection-of-directory-using-htaccess-htpasswd-761722/)

mlapl1 10-13-2009 10:03 PM

Internal Server Error with Password protection of directory using .htaccess/.htpasswd
 
I have a website that works perfectly well.

I decided to password-protect it using .htaccess/.htpasswd.

The password protection works fine but the website no longer works. I now get an Internal Server Error (Error 500). The protected directory is underneath the root of the web server (Apache 2.x) but two directories up from the root of the actual website itself - which is in a sub-dirrectory of the main site.

I have a barebones .htaccess/.htpasswd combination.

Any advice???

Thank you
Andrew

bathory 10-14-2009 12:12 AM

Quote:

The protected directory is underneath the root of the web server (Apache 2.x) but two directories up from the root of the actual website itself - which is in a sub-dirrectory of the main site.
Could you elaborate a bit? What is the DocumentRoot of the website and what is the DocumentRoot of the main site?
You should know that .htaccess is used recursively for any subdirectory underneath the one it's placed. You should also take a look at the apache error_log for more info on the error.

Regards


All times are GMT -5. The time now is 12:21 AM.