how to use reverseproxy with htaccess

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

 



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