Networking Forums

Networking Forums > Computer Networking > Linux Networking > port forwarding 2 subdomains & 2 different IPs

Reply
Thread Tools Display Modes

port forwarding 2 subdomains & 2 different IPs

 
 
Daniel
Guest
Posts: n/a

 
      12-13-2004, 06:28 PM
Hey,

I was wondering if someone could enlighten me on what possiblities I
might have to do the following:

1 IP from ISP ---> netopia router ---> 2 internal IPS

first internal ip: subdomain for catalog (proprietary library catalog
web server on win2k)
second internal ip: generic website www subdomain running on Apache &
Redhat.

From my understanding of port forwarding, all port 80 requests will go
to one internal IP. If I set it to go to my Apache/Redhat server, can
I set it to forward all the requests for the catalog subdomain to the
proprietary OS/Webserver running on another internal IP?

Cheers,
Daniel
 
Reply With Quote
 
 
 
 
Olivier
Guest
Posts: n/a

 
      12-13-2004, 08:50 PM
Daniel wrote:
> Hey,
>
> I was wondering if someone could enlighten me on what possiblities I
> might have to do the following:
>
> 1 IP from ISP ---> netopia router ---> 2 internal IPS
>
>
>
> From my understanding of port forwarding, all port 80 requests will go
> to one internal IP.


Yes, unless your netopia router is able to make some kind of layer7 magic.

If I set it to go to my Apache/Redhat server, can
> I set it to forward all the requests for the catalog subdomain to the
> proprietary OS/Webserver running on another internal IP?


I suggest you use mod_rewrite and configure 2 named based virtual hosts.
The first will simply make a transparent proxy to your catalog, and the
other serve the other domain locally.


Exemple ( may not work ):
<VirtualHost *>
RewriteEngine on

RewriteCond %{SERVER_NAME} "catalog.your.domain"
RewriteRule ^/(.*)$ http://<local ip of catalog server>/$1 [P]
RewriteCond %{SERVER_NAME} "www.your.domain"
RewriteRule ^/(.*)$ $1 [L]
</VirtualHost>


> Cheers,
> Daniel

 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      12-13-2004, 10:41 PM
On 13 Dec 2004 11:28:10 -0800, Daniel <(E-Mail Removed)> wrote:
> I was wondering if someone could enlighten me on what possiblities I
> might have to do the following:
>
> 1 IP from ISP ---> netopia router ---> 2 internal IPS
>
> first internal ip: subdomain for catalog (proprietary library catalog
> web server on win2k)
> second internal ip: generic website www subdomain running on Apache &
> Redhat.
>
> From my understanding of port forwarding, all port 80 requests will go
> to one internal IP. If I set it to go to my Apache/Redhat server, can
> I set it to forward all the requests for the catalog subdomain to the
> proprietary OS/Webserver running on another internal IP?


Yes, see apache docs for mod_proxy and ProxyPass. Although, you may want
to get virtual hosting working for the names first with local directories
and when that works, you can switch one to the proxy instead of local
path.
 
Reply With Quote
 
Daniel
Guest
Posts: n/a

 
      12-14-2004, 02:28 AM
Thanks David and Oliver,

I'll post on how it works out for the library!

Cheers,
Daniel

David:
>
> Yes, see apache docs for mod_proxy and ProxyPass. Although, you may

want
> to get virtual hosting working for the names first with local

directories
> and when that works, you can switch one to the proxy instead of local
> path.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
port tunneling over ssh (not port-forwarding in the traditional sense) C3 Linux Networking 1 07-26-2006 03:44 PM
Port forwarding on Conexant 4 port adsl router Graham Russell Broadband 14 10-24-2003 09:16 PM
Port forwarding on Conexant 4 port adsl router Graham Russell Broadband 1 10-17-2003 11:09 AM
Stupid Question: Port Triggering vs. Port Forwarding Bryce Wireless Internet 3 09-09-2003 05:45 AM
Do I need port forwarding on 25 port to send messages? bu Linux Networking 4 07-17-2003 02:42 PM



1 2 3 4 5 6 7 8 9 10 11