httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Cohen <kildau...@gmx.de>
Subject [users@httpd] how to use reverseproxy with htaccess
Date Sat, 24 May 2008 07:22:13 GMT
Hello all,

I'm new to this list and am not very experienced with apache.
I wan't to use apache's reverse proxy functionality to access a 
webserver in my lan behind nat via ssl. But I want to restrict access 
to only a few users. So I have:

<VirtualHost *:443>
        ServerAdmin webmaster@example.org
        SSLEngine on
        SSLOptions +StrictRequire
        SSLCertificateFile /etc/ssl/certs/apache.pem
        SSLCertificateKeyFile /etc/ssl/private/apache.pem
        ProxyRequests Off
        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Allow from all
        </Proxy>
        <Directory />
                AuthType Basic
                AuthName "Internal Proxy"
                AuthUserFile /etc/apache2/htpasswd
                Require valid-user
                ProxyPass               http://fry.example.org/
                ProxyPassReverse        http://fry.example.org/
        </Directory>
</VirtualHost>

But it doesn't work.
It seems like I can't use ProxyPass and Auth* within the same directive.
What is the common way to something like this?

-- 
Thanks
Chris

---------------------------------------------------------------------
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