Multiple URLs Single Server
Posted
by Amit
on Server Fault
See other posts from Server Fault
or by Amit
Published on 2010-04-21T17:25:57Z
Indexed on
2010/04/21
17:33 UTC
Read the original article
Hit count: 631
dns
Hi,
In the DNS I have setup multiple URLs for my website (all pointing to same server). The entries in DNS looks like as below:
Host TTL Numeric IP
www .mysite.net 7200 192.168.31.12
@ (None) .mysite.net 7200 192.168.31.12
mycompany .mysite.net 7200 192.168.31.12
I wrote a code on Login.aspx page to check the URL and navigate to appropriate company login page. So if I type www.mysite.net or mysite.net then I am getting navigated to standard login page. But when I type mycompany.mysite.net still I am getting navigated to standard login page. But when I type https://mycompany.mysite.net then I am getting navigated to company specific login page. Why I need to type complete URL with https to get navigated to compay specific login page? Why it is not working just with mycompany.mysite.net? Any help of this is highly appriciated.
Thanks, Amit
© Server Fault or respective owner