Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting domain name (several point to same IP) from asp

Status
Not open for further replies.

jamesa74

Programmer
Jan 10, 2001
20
0
0
IL
Different domain names are directed to my IIS 4.0 IP address. They all reach the same asp file. Each one of the has to be treated differently.
how can i know in the asp code, the domain that was requested by the user?
 
Request.ServerVariables("SERVER_NAME") or Request.ServerVariables("HTTP_HOST") should return exactly what you need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top