You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Cohen <ki...@gmx.de> on 2008/05/24 09:22:13 UTC
[users@httpd] how to use reverseproxy with htaccess
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
Re: [users@httpd] how to use reverseproxy with htaccess
Posted by Chris Cohen <ki...@gmx.de>.
On Saturday 24 May 2008 14:34:45 Eric Covener wrote:
> On Sat, May 24, 2008 at 3:22 AM, Chris Cohen <ki...@gmx.de> wrote:
> > <Directory />
> > ProxyPass http://fry.example.org/
> > ProxyPassReverse http://fry.example.org/
> > </Directory>
>
> Try Location instead of directory.
Thank you. That worked.
--
Greetings
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
Re: [users@httpd] how to use reverseproxy with htaccess
Posted by Eric Covener <co...@gmail.com>.
On Sat, May 24, 2008 at 3:22 AM, Chris Cohen <ki...@gmx.de> wrote:
> <Directory />
> ProxyPass http://fry.example.org/
> ProxyPassReverse http://fry.example.org/
> </Directory>
Try Location instead of directory.
--
Eric Covener
covener@gmail.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