LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   htaccess issues (https://www.linuxquestions.org/questions/linux-newbie-8/htaccess-issues-640730/)

qwerty_tele 05-08-2008 03:08 AM

htaccess issues
 
Hi!

I have a Centos5 box at home that I am using as a web server. I am trying to password protect the myphpadmin folder with htaccess. I am using a valid htaccess file (I copied it from a working website www.woodwardlink.com/secure). I access my home server via the ip address, for example 78.98.105.195. The phpmyadmin directory structure is inside /var/www/html and the .htaccess file is inside the phpmyadmin directory. When I type 78.98.105.195/phpmyadmin into my web browser, it just rips through to the phpmyadmin stuff without prompting for a password.

Please help!

bathory 05-08-2008 04:20 AM

You need at least to put
Code:

AllowOverride AuthConfig
inside the <Diretrory /var/www/html>...</Directory> part of the httpd.conf

qwerty_tele 05-08-2008 11:48 PM

Need a bit more help
 
I am close to understanding this issue, but I don't quite understand where this command should go in the httpd.conf file. It is mentioned several times. Everytime I change something in the httpd.conf file, I get barked at when trying to restart httpd ("AllowOverride not allowed here (line 397)"). Any ideas?

qwerty_tele 05-08-2008 11:57 PM

I Got It!
 
I'm sorry, I wasn't understanding your post at first, but now I understand. This httpd.conf file is complex (lots of directives). I will have to get to know them!

Thanks for your help!

TW


All times are GMT -5. The time now is 06:19 AM.