httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
Subject Re: [users@httpd] creating a proxy
Date Wed, 26 Aug 2009 15:12:20 GMT
On Wed, 2009-08-26 at 16:48 +0200, Etienne wrote:
> hi all,
> 
> I would like to enable a proxy on my server with port forwarding.
> The idea is to connect to my server through putty with ssh tunnel
> forwarding localhost:80 to myproxyserver.com:80
> I have enabled proxy module with a2enmod proxy command and setup a
> virtualhost
> my virtualhost (/etc/apache2/sites-available/myproxyserver) has been
> enabled and is as follow
> 
> NameVirtualHost *:80
> <VirtualHost *:80>
>         ServerAdmin webmaster@localhost
>         ServerName myproxyserver.com
>         ProxyRequests On
>         ProxyVia On
> 
>         <Proxy *>
>         Order deny,allow
>         Deny from all
>         Allow from localhost
>        
>         </Proxy>
> </VirtualHost>
> 
> when I set up proxy to 127.0.0.1 on firefox and try to access to a web
> site, I get the following
> 
> 
> Forbidden
> You don't have permission to access / on this server.
> 
> how can I fix that ?
> 
> 
> thanks
> 
> 
> etienne
> 
> 

Simplest way is to forget trying to get apache to do that for you, and
just let SSH do it for you, seeing as you can SSH to that box ok.

ssh -D 3128 <yourproxybox>

and then setup firefox to use 127.0.0.1:3128 as a SOCKS proxy.

The reason apache is probably not working is that it never uses that
vhost for the request. Does it work if you don't use vhosts?

Cheers

Tom


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