LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-31-2004, 02:09 AM   #1
sal_paradise42
Member
 
Registered: Jul 2003
Location: Utah
Distribution: Gentoo FreeBSD 5.4
Posts: 150

Rep: Reputation: 16
Talking .htpasswd and virtual hosts


ok I have been looking everywhere for an answer for this one, so sorry if there is one out there. I have a couple of virtual hosts with Apache and I want to protect one of the sites, but when I put the neccessary protection in it works great, my problem is that my main site also asks for the password, even though I have it 'override none' in the <Directory> and also the other virtual hosts dont ask for it, except for my main site, can anyone help? here is a copy of my http.conf file:

NameVirtualHost *:80

//this one prompts for a password, but I dont wanted to

<Directory /var/www/html>
Options Indexes Multiviews
AllowOverride none
Order Deny,Allow
Allow from all
</Directory>
<VirtualHost *:80>
ServerName XXXX.net
DocumentRoot /var/www/html
TransferLog logs/access_log
</VirtualHost>

<Directory /home/matrimonio>
Options Indexes Multiviews
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>

<VirtualHost *:80>
DocumentRoot /home/matrimonio
ServerName XXXXX.net
ErrorLog logs/host2-error_log
TransferLog logs/host2-access_log
</VirtualHost>

<Directory /fatty/Familia>
Options Indexes Multiviews
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>

<VirtualHost *:80>
DocumentRoot /fatty/Familia
ServerName XXXXXX.net
ErrorLog logs/host3-error_log
TransferLog logs/host3-access_log
</VirtualHost>

//this is the one that I want password protected

<Directory /home/windows>
AuthType Basic
AuthName "My Shit!!!!"
AuthUserFile /usr/local/apache2/conf/password
Require user friend
Options Indexes Multiviews
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>

<VirtualHost *:80>
DocumentRoot /home/windows
ServerName XXXXXX.net
ErrorLog logs/host1-error_log
Transferlog logs/host1-access_log
</VirtualHost>
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 09:44 PM
Help with Virtual Hosts? econnections Linux - Newbie 3 07-02-2005 01:39 PM
Virtual hosts Help carminejg3 Linux - Newbie 2 12-22-2004 03:47 PM
Virtual Hosts Help please... vbp6us Linux - General 15 07-11-2003 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration