Re: Question about ProxyPass

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

 



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