apache advice

Roger Oberholtzer roger
Tue Aug 1 03:15:34 PDT 2006


It is so long since I played with this in apache that all knowledge
seems to have gone. It is not like riding a bicycle.  But I have need to
set up something that should be simple:

I have an external machine listening on, say:

	http://s.r.com:8080

I want all requests on this port to go to an internal machine running
Apache, expecting these sorts of requests to arrive on its port 8080

	http://internal:8080

My question is: of the various methods for doing this, which is the
best? I guess I could do any of these:

1. Use apache's mod_rewrite to change all http://s.r.com:8080 into
http://internal:8080. But wouldn't the internal machine need to be seen
externally? I guess it depends on how the host part is really rewritten.
To be honest, this one seems a dubious solution.

2. Redirect all activity on http://s.r.com:8080 to the internal machine
using some general network thing. The external machine is really behind
a NAT, so I do not run an additional firewall. The connection must be on
port 8080, as that is the port I can connect to/from the NAT.

3. Other.

A push in the right direction would get me started.

Discuss amongst yourselves...


-- 
Roger Oberholtzer

OPQ Systems AB
Ramb?ll Sverige AB
Kapellgr?nd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden

Tel: Int +46 8-615 60 20
Fax: Int +46 8-31 42 23




More information about the Linux-users mailing list