[Mongrel] Apache, Mongrel, Authentication

Antoine Antoine lists at ruby-forum.com
Fri Aug 29 08:52:13 EDT 2008


Thanks rafael for your fast reply,

But I tried to apply that and I still have the problem. Here is my 
situation.

----------------------------------------------------------------------
<Proxy *>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order Allow,Deny
      Allow from all
      Deny from env=blockAccess
      AcceptPathInfo Off
      Satisfy Any
</Proxy>

<VirtualHost *:80>
  ServerName my.servername.com
 ..... # this virtual host doesn't have anymore authentication
 # and with mongrel_cluster ....

</VirtualHost>

<VirtualHost *:80>
  ServerName my.servername.com
  .....
  DocumentRoot /..../public/

  <Directory /..../public/ >
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order Allow,deny
      Allow from all
      Deny from env=blockAccess
      AuthType Basic
      AuthName "Version Foo"
      AuthUserFile "/mypath/to/.htpasswd"
      require valid-user
  </Directory>

  <Proxy balancer://my.server_cluster>
    BalancerMember http://localhost:4000
    AuthType Basic
    AuthName "Version Foo"
    AuthUserFile "/mypath/to/.htpasswd"
    require valid-user
   </Proxy>

   [.....]
</VirtualHost>

----------------------------------------------------------------------

Maybe that's due to my <proxy *> in front of it no ?
-- 
Posted via http://www.ruby-forum.com/.


More information about the Mongrel-users mailing list