LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .htaccess and cgi-bin (apache of course) (https://www.linuxquestions.org/questions/linux-software-2/htaccess-and-cgi-bin-apache-of-course-57679/)

finegan 05-01-2003 01:53 PM

.htaccess and cgi-bin (apache of course)
 
This is with Apache 1.3.27

I can't get Apache to pay attention to the presence of an .htaccess file within the cgi-bin itself. I figure there must be some simple setting in httpd.conf, but google and the apache manual are being mean to me, and evidently this behavior is rather new so I'm pulling up a lot of arcana.

I know the file perms on the .htaccess and .htpasswd are right, I just copied them to outside of the cgi-bin and all was fine.

BTW, this is in order to get IDS to function: ids.sourceforge.net (crappy FAQ)

Cheers,

Finegan

david_ross 05-01-2003 01:55 PM

Make sure the "AllowOverride" value in httpd.conf allows the service you want to use .htaccess for. Values could eb "All" "AuthConfig" etc.

david_ross 05-01-2003 02:01 PM

I should have said that is for the directories you want to allow the AllowOverride values to be configured. It is not advised to change the root directories values as this will take precedence over all other virtual hosts etc.

finegan 05-01-2003 04:04 PM

Thanks man, all of the commented explination of that was up by the DocumentRoot section, I didn't even think to scan up there. I applied it just to the cgi-bin itself, which is seperate in and of itself, works brilliantly.

Thanks again,

Finegan

david_ross 05-01-2003 04:21 PM

No problem - glad to help!


All times are GMT -5. The time now is 11:15 PM.