• Status: Solved
• Priority: Medium
• Security: Public
• Views: 174
• Last Modified:

# DNS Hosts and IIS

Dear All...
I have many local webapplication that are hosted in different servers and accesses with webpage contating the server name:

http://Server1name.domain/app1
http://Server2name.domain/app2

For security reasons i would like to consolidate all these webapplications to main webpage

http://main.domain/app1 to access the app1
http://main.domain/app2 to access the app2

you can just use the above url directly or go to the main page and click on App1 or App2 links.

What i am succedded to do is to creat the http://main.domain page (without using the server name) , i used Host (A) in DNS and adjusted the IIS but for the rest i dont know how to do them.

Kindlu advice.
0
mostabdo
Asked:
• 2
2 Solutions

Commented:
Options include moving each website folder structure to the central consolidated server, create symbolic links on the central server which point to the original servers, or use iframe tags (e.g. http://main.domain/app1 loads http://Server1name.domain/app1 via iframe, etc.)

mklink /d app1 \\Server1name.domain\x$\path\to\app1 mklink /d app2 \\Server2name.domain\x$\path\to\app2


http://www.w3schools.com/tags/tag_iframe.asp
0

Commented:
BTW, if you do copy folder structures centrally, or create a symbolic links, you'll need to globally modify the code to point to the new URI for any absolute links.  If coded to use relative links than you're in luck.  It's possible to have the legacy site run side by side with the new until completely tested.  Would recommend iframe first to avoid issues above, or redirect as a second choice, although iframe or redirect wouldn't necessarily address the "security reasons" you're eluding to, in which case you're left with manually migrating.

http://main.domain/app1
<iframe src="http://Server1name.domain/app1"></iframe>

http://main.domain/app2
<iframe src="http://Server2name.domain/app2"></iframe>
0

Author Commented:
Thanks i will study these options and till you if it works
0

## Featured Post

• 2
Tackle projects and never again get stuck behind a technical roadblock.