httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Germer, Carsten" <carsten.ger...@desy.de>
Subject RE: [users@httpd] Protecting a vhost with basic_auth
Date Wed, 04 Oct 2006 14:44:13 GMT
Yay!

>-----Original Message-----
>From: Vinay Y S [mailto:vinay.ys@gmail.com] 
>Sent: Wednesday, October 04, 2006 4:19 PM
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] Protecting a vhost with basic_auth
>
>
>At the end of the virtual host section, put this section
><Location />
>AuthType basic
>AuthName "Login to Secure Bunker"
># put the auth provider configuration here
>Require valid-user
></Location>
>
>HTH,
>Vinay Y S
>
>On 10/4/06, Germer, Carsten <carsten.germer@desy.de> wrote:
>> Hello,
>> today I have an, hopefully, easier question :)
>>
>> In my configuration there's a vhost with ServerNames, -Aliases, a
>> document root, <directory /> and rewriterules for serving dynamic
>> content.
>> Now I want to have a basic_auth before anything else, you 
>should have to
>> log in before you get to any of the directorys or to any 
>rewrite rule.
>>
>> I fiddled this and that and couldn't get it to work to protect the
>> rewrite_rules...
>>
>>  <VirtualHost *:80>
>>    ServerName zmsdemo.desy.de
>>    ServerAlias zmsdemo
>>    CustomLog /scratch/apache_log/zmsdemo.log
>>    DocumentRoot
>> "/afs/desy.de/group/weboffice/apachelogs/combined/htdocs/zmsdemo"
>>    <Directory />
>>        Options FollowSymLinks
>>        AllowOverride None
>>        Order Deny,Allow
>>        Deny from all
>>        Allow from all
>>    </Directory>
>>    RewriteEngine on
>>    # for accessing static content
>>    RewriteRule ^/stats(.*) /stats$1 [L]
>>    # for the dynamic stuff
>>    RewriteRule ^(.*) http://localhost:8080/sites/site_zmsdemo$1 [P,L]
>>  </Virtualhost>
>>
>> 
>---------------------------------------------------------------
>---------
>> Carsten Germer         Deutsches Elektronen Synchrotron 
>(Web-Office, IT)
>> phone:  +49-40-8998-1661                                    
>Notkestr. 85
>> web: http://wof.desy.de                                    
>22607 Hamburg
>> e-mail: carsten.germer@desy.de                               
>    Germany
>> 
>---------------------------------------------------------------
>---------
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP 
>Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>-- 
>Vinay Y S
>http://vinay-ys.blogspot.com
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message