Ow Mun Heng wrote:
> how do I specify the internal example2.com (say ip 192.168.1.1)
Where does the proxy directive go to?
Thanks for the help in explaining.
Here's a working config from a friend's webserver that proxies his Tivo.
In his setup the ProxyPass and ProxyPassReverse point to the public IP
of the Tivo so you might need to mess with the config a little bit if
it's internal, like maybe turn ProxyRequest On... it's been 6 months or
so since I helped him set it up. I included the Auth stuff as well in
case you needed it, though for a normal webserver you should skip that
stuff. Again IIRC the Location / can be used to point to a dir on the
internal machine. Setting Location /tivo/ would start you at
10.10.10.11/tivo/ rather than just / like in this config.
<VirtualHost *>
ServerName tivo.domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/tivo.domain.com/htdocs
TransferLog /var/log/apache/tivo.domain.com-access.log
RefererLog /var/log/apache/tivo.domain.com-referer.log
ErrorLog /var/log/apache/tivo.domain.com-error.log
ProxyRequests Off
ProxyPass / http://10.10.10.11:8088/
ProxyPassReverse / http://10.10.10.11:8088/
<Location />
AllowOverride None
AuthType Basic
AuthName tivo
AuthUserFile /etc/apache/tivopasswd
require valid-user
</Location>
</VirtualHost>
kashani
--
[email protected] mailing list