LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-12-2004, 08:41 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/11/13.37/14 RedHat 6.2/7 SuSE 8.2/11.1
Posts: 418

Rep: Reputation: 30
apache configuration question


I have found that any .htaccess files within any of my virtual host directories are not being read, what configuration must I add to my virtual host parts of my configuration.

Any other .htaccess files from my main configuration work fine.
Obviously there is configuration in the Global section of the httpd.conf file which allows .htaccess files to be read but just no for the virtual hosts

An example of my virtual host config is as follows:

<VirtualHost *:80>
ServerAdmin webmaster@vhost1.com
DocumentRoot /var/www/www.vhost1/public_html
ServerName www.vhost1.com
ErrorLog /var/www/www.vhost1/logs/error_log
CustomLog /var/www/www.vhost1/logs/access_log combined
</VirtualHost>


What do I need to add to the above container?
Thanks in advance...

Last edited by plisken; 04-12-2004 at 08:45 AM.
 
Old 04-12-2004, 08:48 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You will probably need an "AllowOverride" directive for each of the virtual host directories.
 
Old 04-12-2004, 10:09 AM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/11/13.37/14 RedHat 6.2/7 SuSE 8.2/11.1
Posts: 418

Original Poster
Rep: Reputation: 30
Just not exactly sure which to add to each virtual host
 
Old 04-12-2004, 10:14 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
What are you wanting to do with your htaccess files?
 
Old 04-12-2004, 11:16 AM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1/11/13.37/14 RedHat 6.2/7 SuSE 8.2/11.1
Posts: 418

Original Poster
Rep: Reputation: 30
OK got it...

I was wishing to have .htaccess files to password protect directories within virtual hosts.

I eventually added the following lines to my httpd.conf file:

<Directory "/var/www/www.*">
AllowOverride AuthConfig
</Directory>

I had previously tried to add AllowOverride AuthConfig to the Virtual Host deirectives but found this NOTY to be allowed.

But all is fine now(with this issue anyway...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache configuration BoardinBum Linux - Networking 3 12-29-2004 05:53 AM
PHP and APACHE servers.. configuration question eech55 *BSD 6 10-20-2004 02:40 PM
awstats and apache configuration question mcostello1 Linux - Software 1 10-07-2004 06:45 PM
Apache configuration snurckle Linux - Newbie 4 07-25-2004 10:06 PM
Apache configuration question jobesd Linux - Newbie 1 03-26-2003 10:56 PM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration