LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-19-2008, 04:57 AM   #1
PlatinumX
Member
 
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178

Rep: Reputation: 15
Apache2 does not ask for password


Hey all,

I am running Apache2 on a Debian server.
There is a virtual host that I want to basically protect using HTTP auth.

I configured Apache the good way (I think).

However, my browser does not require anything when I connect.

Here is my config file:
Code:
NameVirtualHost *:443                                                           
                                                                                
<VirtualHost *:443>                                                             
        ServerAdmin webmaster@XXX.net                                       
        DocumentRoot /var/www/term.XXX.net                                  
        ServerName term.XXX.net                                             
        ServerAlias term.home.network                                           
        ErrorLog /var/log/apache2/term.XXX.net.error.log                    
        CustomLog /var/log/apache2/term.XXX.net.access.log common           
        SSLEngine On                                                            
        SSLCertificateFile /etc/apache2/apache.pem                              
        <Directory /var/www/term.XXX.net>                                   
                AuthUserFile /etc/apache2/term.XXX.net.passwd               
                AuthName "WHO ARE YOU?"                                         
                AuthType Basic                                                  
                Require valid-user                                              
                Order allow,deny                                                
                Allow from all                                                  
        </Directory>                                                            
        ProxyRequests Off                                                       
        <Proxy *>                                                               
                Order deny,allow                                                
                Allow from all                                                  
        </Proxy> 
        ProxyPass /ajaxterm/ http://localhost:8022/                             
        ProxyPassReverse /ajaxterm/ http://localhost:8022/                      
</VirtualHost>
Any idea ?

Thanks
 
Old 12-19-2008, 05:41 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You need
Code:
AllowOverride AuthConfig
inside the <Directory ...></Directory> part of your config file

Regards
 
  


Reply



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
Apache2 Password protecting a directory taj Linux - Server 4 06-23-2008 07:24 PM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt SUSE / openSUSE 14 04-18-2006 11:36 AM
Apache2: showing password protected directories hamish Linux - Software 7 11-15-2004 12:50 PM
Apache2 .htaccess - Unable To Get Password Prompt. magestic Linux - Software 2 10-27-2004 08:49 AM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 11:46 AM

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

All times are GMT -5. The time now is 11:22 AM.

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
Open Source Consulting | Domain Registration