mod_proxy and basic authentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

my used httpd is Apache 1.3.37 under Solaris 10 (Sparc).

I want to configure it to be a proxy for another system but the access
must be limited with a method like basic authentication.

My current configuration looks like this:

[snip]

<VirtualHost 1.2.3.4:80>
   ServerAdmin admin@xxxxxxx
   DocumentRoot /usr/local/apache/
   ServerName www.foo.net
   DirectoryIndex index.htm index.html
   SetEnv PERLROOT /usr/local/Perl5
   SetEnv PERLLIB /usr/local/Perl5/lib:

  ProxyPass / http://5.6.7.8/
  ProxyPassReverse / http://5.6.7.8/

  <Directory />
        AuthType Basic
        AuthName Demo-Access
        AuthUserFile /usr/local/apache/apache-authorization
        Require valid-user
  </Directory>
</VirtualHost>

[snap]

Without the "ProxyPass*" lines I'll get the basic auth request. With the
"ProxyPass*" lines it delivers the content of http://5.6.7.8/ without
prompting for a login/password.

It seems that the apache completely ignores the authentication if the
requested url matches the proxy directives.

Can someone give me a hint to solve this problem, please?

Thanks in advance :)

Steffen
-- 
Steffen Wieschalla, stw@xxxxxx
Tel:  +49 711 90074-418
Fax:  +49 711 90074-33
http://www.LF.net/

LF.net Netzwerksysteme GmbH
Ruppmannstr. 27
70565 Stuttgart (Germany)
Handelsregister Stuttgart: HRB 18189
Geschaeftsfuehrer: Norman Fuerst, Rodney Volz


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux