Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Domains
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Domains

 Post Reply Post Reply
Author
Scott07 View Drop Down
Groupie
Groupie


Joined: 04 July 2002
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scott07 Quote  Post ReplyReply Direct Link To This Post Topic: Domains
    Posted: 29 April 2005 at 8:12am
Is there a way with either ASP, IIS or the windows DNS server, to make two domains point to the same server but load different sites.  For excample say http://www.test1.com points to the root of the IIS web site (say http://webserver) and to make the second one point to a folder so http://www.test2.com would point to http://webserver/test.  I cam make the domains point to the same server but the only problem is they display the same thing at the moment because they point to the same site.  Is there a way to do this so two compleatly different sites can work on the same server but have no interconnection with each other.  Many thanks
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2005 at 8:48am
I've been doing it for years - using your example I can show you basically how to do it. I have several domain names sharing one website all with entirely different content, design and layout. (Helps with global file sharing.)
 
 Select Case Request.ServerVariables("SERVER_NAME")
  Case "www.test1.com"
        Server.Transfer "/default.asp"
  Case "test1.com"
        Server.Transfer "/default.asp"  
  Case "www.test2.com"
        Server.Transfer "/test/default.asp"
  Case "test2.com"
        Server.Transfer "/test/default.asp"  
  Case Else
        Server.Transfer "/pickadomain.asp"   
 End Select
Back to Top
Lofty View Drop Down
Newbie
Newbie
Avatar

Joined: 03 April 2005
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lofty Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2005 at 9:11am
in IIS admin create a new site. you'll be prompted for the local path during the creation process. set it to whatever folder ya want.

to get a domain pointed to the server you'll need to either set the name servers and then run a dns server on your server..  or if you have access to add in A, MX and CNAME records for your domain at yiur registra then just set the A records to poijt to your server IP addy.  once thats done then it's down to IIS to laod up the files from the folder specified in the local path under the home directory tab.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.