Redirecting web site requests

A

Andrew Chalk

To IIS and network experts..

In order to update my application, I have set it up on two virtual
directories on the default web site on XP. For example, these are named APP1
and APP2. Then, I have set up a "main" site called APP. The APP site just
contains an entry under the "virtual directory" tab telling all requests to
be redirected to APP1 or APP2, depending which one is currently in
production. Ths poses a problem for people accessing the web site from an
internal LAN address. They use the internal lan address I.e.
http://192.168.0.2/APP but the redirection command in APP is specified with
the external address. For example http://66.138.76.169/APP1 or
http://66.138.76.169/APP2. The redirection doesn't work.

Is there anyway that I can redirect that will work from both internal and
external addresses?

Why can't an internal user access the site via the external address? I.e.
what is wrong with their routing?

Many thanks
 
S

Smiles

Andrew said:
To IIS and network experts..

In order to update my application, I have set it up on two virtual
directories on the default web site on XP. For example, these are named APP1
and APP2. Then, I have set up a "main" site called APP. The APP site just
contains an entry under the "virtual directory" tab telling all requests to
be redirected to APP1 or APP2, depending which one is currently in
production. Ths poses a problem for people accessing the web site from an
internal LAN address. They use the internal lan address I.e.
http://192.168.0.2/APP but the redirection command in APP is specified with
the external address. For example http://66.138.76.169/APP1 or
http://66.138.76.169/APP2. The redirection doesn't work.

Is there anyway that I can redirect that will work from both internal and
external addresses?

Why can't an internal user access the site via the external address? I.e.
what is wrong with their routing?

Many thanks
this is done in the setup of apache where I work
 
C

chrispsg

Users on the LAN will not be able to acceess the site using the
external address because they are probably behind a router running NAT.
This is a problem in your scenario. However you could purchase a domain
name and point it to your public IP. Then create a dns zone called
yourdomain.com on your internal DNS server. Create a record in that
zone to point to the private IP of the web server. Then both internal
and external users could access the site using the same address.

For example:
create an internal DNS Zone yourdomain.com
create an A record with the prefix www and point that to the internal
IP of the web server.

Your internal LAN users will resolve www.yourdomain.com as the private
IP of the webserver instead of your internal DNS server forwarding to
an external DNS server and providing the public address.
 
A

Andrew Chalk

Many thanks, to Kurt and 'Smiles' as well. I am passing this on to the net
admin. to investigate.

Regards,

Andrew
 
K

Kurt

I like Chris's answer the best. In fact to add to his idea, I believe you
can have multiple DNS entries for the same record, i.e.

65.10.200.201 www
192.168.0.201 www

and if netmask ordering is enabled and round-robin disabled (in a Windows
DNS server), you should always get the local address when accessing the
record form a computer with a local address.

....kurt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top