Click to See Complete Forum and Search --> : Public veiwing a put in an internal network


Howlin Mad Murdock
06-20-2001, 01:44 PM
Hello,

I have a cable modem, and on it I have a computer running as a gateway to the rest of my network. I have registered two domain subnames at homeip.net. Fot arguements sake lets call them one.homeip.net and two.homeip.net. I have both of the domains poining to the IP of my cable modem. I would like one.homeip.net to be the gateway's page, and the two.homeip.net to be transferred into the lan and show my computer with a private address of 192.168.0.13. Is this possible? If so, how do I go about starting to do this?

Thanks,

Murdock

Craig McPherson
06-20-2001, 04:43 PM
With only one IP, there's not a pretty way to do it.

You can do a ProxyPassReverse in Apache with mod_proxy, but it will be extremely slow. I've used ProxyPassReverse in Apache, and it is absolutely infuriating how slowly it performs.

freebsd
06-21-2001, 05:16 AM
Beside mod_proxy, you can also use mod_rewrite.

Start here -> http://forums.devshed.com/showthread.php?s=&threadid=13363&forumid=15&highlight=proxy

Or a more complicated situation -> http://forums.devshed.com/showthread.php?&threadid=13514

For Apache-related questions, you will have better luck at Devshed.com's Apache forum. Do a search there, you will find more than you wanted to know.

Craig McPherson
06-23-2001, 09:14 PM
Can you really use mod_rewrite when the other server is on the private NAT network rather than being accessible to the world?

freebsd
06-24-2001, 08:00 AM
Yes so long as your external server has access to your internal server. That said, so the following is possible:

RewriteEngine on
RewriteRule ^/icons/(.+) - [PT,L]
RewriteRule ^/(.*) http://192.168.0.2/$1 [P,L]

People don't have access to your http://192.168.0.2 doesn't matter. Yes, it's possible with mod_rewrite, but not the ideal way to do it. Implementing port forwarding is more efficient.