httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phill Edwards" <philledwa...@gmail.com>
Subject Re: [users@httpd] Question about ProxyPass
Date Tue, 30 Jan 2007 22:33:03 GMT
> The most trouble-free way to do this would be to setup a ProxyPass at
> the root of the server.  Then there would be no question of breakage
> with relative links.  Something like
>
> NameVirtualHost *:80
> <VirtualHost *:80>
> ServerName survey.yoursite.example.com
> ProxyPass / http://XXX.com/
> ProxyPassReverse / http://XXX.com/
> </VirtualHost>

Thanks Joshua. I've been trying to get this to work. I've added this
to the bottom of my /etc/httpd/conf/httpd.conf and added
surveys.homeserver.home to /etc/hosts  :

NameVirtualHost *:80
<VirtualHost *:80>
ServerName surveys.homeserver.home
ProxyPass / http://XXX.com/
ProxyPassReverse / http://XXX.com/
</VirtualHost>

When I go to this URL now I get this error back:
Directory Listing Denied
This Virtual Directory does not allow contents to be listed

When I ProxyPass'd to www.google.com.au instead it worked fine so this
error must be coming form the target web server. I guess I'll have to
take that up with them.

Many thanks for your help,
Phill

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