How to access web server internal with local (intranet) address

How to access web server internal with local (intranet) address

am 27.11.2007 17:59:47 von BZ

Hi,

I develop a web application that must be used both intranet and
internet. It must be used by user inside the company network by using
the local name of thr server pc (like http://myserver/myapp)
The server is running Windows Server 2003 with IIS and it has several
internet-enabled websites configured (www.site1.com, www.site2.com,
and so on)
My app needs to be installed under a site, for example www.site1.com.
which is not the default website
Because of this, I cannot access the app inside the network with link
like
http://localserver/myapp, because this will always direct me to
default website

Is there any way to have my app running in a virtual dir of another
website and still be able to access it internally with internal
website name?

Thank you

Re: How to access web server internal with local (intranet) address

am 27.11.2007 18:43:09 von Kristofer Gafvert

To answer your question in general - Yes, you can do that. If it works in
your case, with other websites and such - i dont know.

My understanding of your requirement is the following:
- You want to access the website externally using www.site1.com
- You want to access the website internally using myserver/myapp

You can accomplish this setup in the following way:
1. Create a website in IIS manager and point it to the folder where you have
the files, in this example d:\web\myapp
2. Create a virtual directory in default website (assuming this website will
answer to http://myserver/), call it myapp and point it to d:\web\myapp.

You will now have two websites serving the same application (which means
that the requests will be logged in different log files), with the link you
want to use.

Note: I have no idea if your application supports this. Possible issues are
that your application cannot run properly when it is run from a folder, or
that you will lock files that are accessed by two website and also possible
by two different worker processes.

Note2: Why can you not use www.site1.com internally? It is certainly
possible. Not supported by your router? You have misconfigured the DNS
server to not support this?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


"bz" skrev i meddelandet
news:4a9afa4a-ca34-4fc4-85fb-910a93f96720@d27g2000prf.google groups.com...
> Hi,
>
> I develop a web application that must be used both intranet and
> internet. It must be used by user inside the company network by using
> the local name of thr server pc (like http://myserver/myapp)
> The server is running Windows Server 2003 with IIS and it has several
> internet-enabled websites configured (www.site1.com, www.site2.com,
> and so on)
> My app needs to be installed under a site, for example www.site1.com.
> which is not the default website
> Because of this, I cannot access the app inside the network with link
> like
> http://localserver/myapp, because this will always direct me to
> default website
>
> Is there any way to have my app running in a virtual dir of another
> website and still be able to access it internally with internal
> website name?
>
> Thank you

Re: How to access web server internal with local (intranet) address

am 27.11.2007 20:19:12 von BZ

Thank you for your post
Actually, right after I post the message, I got the same thought, so
I'll give it a try
The issue to use the site internally (with intern name) is because I
need the web app to be seen as intranet, a safer zone than interet,
for some features needed for internal usage to work

Thanks, again

Regards,
Bogdan

On 27 Noi, 19:43, "Kristofer Gafvert" wrote:
> To answer your question in general - Yes, you can do that. If it works in
> your case, with other websites and such - i dont know.
>
> My understanding of your requirement is the following:
> - You want to access the website externally usingwww.site1.com
> - You want to access the website internally using myserver/myapp
>
> You can accomplish this setup in the following way:
> 1. Create a website in IIS manager and point it to the folder where you ha=
ve
> the files, in this example d:\web\myapp
> 2. Create a virtual directory in default website (assuming this website wi=
ll
> answer tohttp://myserver/), call it myapp and point it to d:\web\myapp.
>
> You will now have two websites serving the same application (which means
> that the requests will be logged in different log files), with the link yo=
u
> want to use.
>
> Note: I have no idea if your application supports this. Possible issues ar=
e
> that your application cannot run properly when it is run from a folder, or=

> that you will lock files that are accessed by two website and also possibl=
e
> by two different worker processes.
>
> Note2: Why can you not usewww.site1.cominternally? It is certainly
> possible. Not supported by your router? You have misconfigured the DNS
> server to not support this?
>
> --
> Regards,
> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>
> "bz" skrev i meddelandetnews:4a9afa4a-ca34-4fc4-85fb-9=
10a93f96720@d27g2000prf.googlegroups.com...
>
>
>
> > Hi,
>
> > I develop a web application that must be used both intranet and
> > internet. It must be used by user inside the company network by using
> > the local name of thr server pc (likehttp://myserver/myapp)
> > The server is running Windows Server 2003 with IIS and it has several
> > internet-enabled websites configured (www.site1.com,www.site2.com,
> > and so on)
> > My app needs to be installed under a site, for examplewww.site1.com.
> > which is not the default website
> > Because of this, I cannot access the app inside the network with link
> > like
> >http://localserver/myapp, because this will always direct me to
> > default website
>
> > Is there any way to have my app running in a virtual dir of another
> > website and still be able to access it internally with internal
> > website name?
>
> > Thank you- Ascunde citatul -
>
> - Afi=BAare text =EEn citat -