How to forward 80 requests to port 8080 (mod_proxy)?
am 11.06.2007 23:52:32 von beagle197Folks,
Wanted to forward all requests to port 8080 via a proxy set up on port
80. I've tried setting up the mox_proxy httpd.conf settings according
to the docs, but haven't been successful. Here's what I've set up in
httpd.conf.
ProxyRequests On
Order deny,allow
Allow from all
ServerName my.site.com
ProxyRemote http://my.site.com http://my.site.com:8080/
Internal to content pulled from http://my.site.com:8080/ might require
pulling site data also pulled from 8080, but it should be resolved
from the server properly and transparent to the client. Thus errors
from the error_log might appear as follows:
[Mon Jun 11 14:11:37 2007] [error] [client 192.168.103.69] File does
not exist: /var/www/html/overlib.js, referer: http://my.site/
[Mon Jun 11 14:12:00 2007] [error] [client 192.168.103.69] File does
not exist: /var/www/html/overlib.js, referer: http://my.site.com/
[Mon Jun 11 14:12:23 2007] [error] [client 192.168.103.69] File does
not exist: /var/www/html/obe
[
I'm using httpd-2.0.52-32.ent for RHEL.
Also I'd like to rewrite my.site to my.site.com if the user ever types
this into the browser. Any ideas how to set up the mod_proxy and
mod_rewrite rules to acheive this? I'd like to block all access to
port 8080 via iptables rules.
Thanks,
-BEA