Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP ASP.NET IIS7.5
Hi,
 
I have an ASP application with URL: http://exampleAsp.com and an ASP.NET application with URL: http://exampleAspDotNet.com.
 
Suppose ASP application is in WEBSERVER1(ip:192.168.40.130) and ASP.NET application is in WEBSERVER2((ip:192.168.36.145) .
 
I need to interchange the URL for both the applications, i.e.
http://exampleAsp.com opens the ASP.NET application , and
http://exampleAspDotNet.com opens the ASP application.
 
I am using alias value for the ASP.NET application.
HostHeaderName = http://exampleAspDotNet.com[^]
 
In the ASP application, the URL is hardcoded since we check certain conditions on that URL.
 
Hence the Sites are not working when we interchange the IP address.
 
My Question is...
1. Do I need to change the Alias name of the ASP.NET application so that I can open the ASP.NET application by the URL http://exampleAsp.com[^]
 
2. Do I need to make code changes in the ASP application where the condition for the URL http://exampleAsp.com is checked ??
 

 
Thanks in Advance !!
Posted 5-Oct-12 4:13am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 400
1 Maciej Los 222
2 OriginalGriff 213
3 BillWoodruff 130
4 Zoltán Zörgő 85
0 OriginalGriff 7,969
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,309
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 5 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100