For Programmers: Free Programming Magazines  


Home > Archive > ASP > March 2008 > can this be solved using ASP?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author can this be solved using ASP?
c676228

2008-03-17, 3:57 am

Hi All,

Our company is merging two production domains(from two different servers)
onto one server. So during the migration we use an intranet testing server to
hold all files from these two domain, when we do testing, we use host file to
map intranet IPs to these two domains. It will not impact on production
sites since it won't be seen externally. These two domains navigable each
other, that means from domainA we have links to domainB, while from domainB,
we have links to domainA.
These domain names are all hard coded in the program.
Now it seems a big problem. When we move all these file to a new production
server which is at a public hosting company, we need to do testing, at this
moment,
old production servers are still running and we have to use IPs to do
testing, cannot map IPs to domain names at all. That means all hard-coded
links from domainA to domainB will not work, and I have to change all the
links from domain name to IP?
Then when we finally go live with our new production server, I have switch
back to
domain name, what a mess? I didn't think through all those steps when we did
it.
Anybody has better solution?
Thank you so much


--
Betty
Adrienne Boswell

2008-03-17, 6:57 pm

Gazing into my crystal ball I observed =?Utf-8?B?YzY3NjIyOA==?=
<betty@newsgroup.nospam> writing in
news:732B66ED-FE25-4E05-A003-1E0B9AE03475@microsoft.com:

> Hi All,
>
> Our company is merging two production domains(from two different
> servers) onto one server. So during the migration we use an intranet
> testing server to hold all files from these two domain, when we do
> testing, we use host file to map intranet IPs to these two domains. It
> will not impact on production sites since it won't be seen
> externally. These two domains navigable each other, that means from
> domainA we have links to domainB, while from domainB, we have links to
> domainA. These domain names are all hard coded in the program.
> Now it seems a big problem. When we move all these file to a new
> production server which is at a public hosting company, we need to do
> testing, at this moment,
> old production servers are still running and we have to use IPs to do
> testing, cannot map IPs to domain names at all. That means all
> hard-coded links from domainA to domainB will not work, and I have to
> change all the links from domain name to IP?
> Then when we finally go live with our new production server, I have
> switch back to
> domain name, what a mess? I didn't think through all those steps when
> we did it.
> Anybody has better solution?
> Thank you so much
>
>


If they are hard coded absolute paths, you should be able to do a global
search and replace, eg. replace http://www.example.com/somepage.asp with
http://www.example.net/somepage.asp just replace all example.com with
example.net.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Steven Cheng

2008-03-18, 3:56 am

Hi Betty,

How many pages or links will you need to replace here? I'm afraid for such
scenario, there hasn't any quick & simple means to do a replace or
redirection. Also, since the problem only occurs during the time your pages
are deployed on external server and want to test from internal, I think
adding additional code logic to do redirection is also not quite
reasonable. I will still suggest manually replace those link's servername.

Steven Cheng
Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

>From: =?Utf-8?B?YzY3NjIyOA==?= <betty@newsgroup.nospam>
>Subject: can this be solved using ASP?
>Date: Sun, 16 Mar 2008 21:35:01 -0700


>
>Hi All,
>
>Our company is merging two production domains(from two different servers)
>onto one server. So during the migration we use an intranet testing server

to
>hold all files from these two domain, when we do testing, we use host file

to
>map intranet IPs to these two domains. It will not impact on production
>sites since it won't be seen externally. These two domains navigable each
>other, that means from domainA we have links to domainB, while from

domainB,
>we have links to domainA.
>These domain names are all hard coded in the program.
>Now it seems a big problem. When we move all these file to a new

production
>server which is at a public hosting company, we need to do testing, at

this
>moment,
>old production servers are still running and we have to use IPs to do
>testing, cannot map IPs to domain names at all. That means all hard-coded
>links from domainA to domainB will not work, and I have to change all the
>links from domain name to IP?
>Then when we finally go live with our new production server, I have switch
>back to
>domain name, what a mess? I didn't think through all those steps when we

did
>it.
>Anybody has better solution?
>Thank you so much
>
>
>--
>Betty
>


c676228

2008-03-20, 9:56 pm

Hi Steven,

I am thinking I will still use host file to map our domain name to our new
production server for testing. That way I don't need to write any code or
replace any code. But I am not sure if it is OK or if it will confuse google
search engine or some DNS Servers since our DNS server will still point our
domain name to our current(old) production server (old IP address).

I am just wondering if the real world will see our domain name has two IPs
since our new production server is located at public hosting company too.

Or the question is if you use another IP to map to a domain name in
production for the purpose of testing, will it hurt our current production
site?

Hopefully
--
Betty


""Steven Cheng"" wrote:

> Hi Betty,
>
> How many pages or links will you need to replace here? I'm afraid for such
> scenario, there hasn't any quick & simple means to do a replace or
> redirection. Also, since the problem only occurs during the time your pages
> are deployed on external server and want to test from internal, I think
> adding additional code logic to do redirection is also not quite
> reasonable. I will still suggest manually replace those link's servername.
>
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@microsoft.com.
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> --------------------
>
>
> to
> to
> domainB,
> production
> this
> did
>
>

Steven Cheng

2008-03-21, 3:56 am

Hi Betty,

I think host file solution should work for your own internal network since
you can control the host files for your internal client machines or the
local DNS server. However, for external network and environment, when they
visit the ASP pages and visit the link, they'll get the actual IP through
internet DNS server, I think it will exsit some difference between your
internal clients. Do you think so?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Thread-Topic: can this be solved using ASP?
>thread-index: AciK3xsa1beYvTorSAy5drl5zfgYPg==
>X-WBNR-Posting-Host: 63.241.246.249
>From: =?Utf-8?B?YzY3NjIyOA==?= <betty@newsgroup.nospam>
>References: <732B66ED-FE25-4E05-A003-1E0B9AE03475@microsoft.com>

<2mgmewLiIHA.4672@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: can this be solved using ASP?
>Date: Thu, 20 Mar 2008 16:07:01 -0700


>
>Hi Steven,
>
>I am thinking I will still use host file to map our domain name to our new
>production server for testing. That way I don't need to write any code or
>replace any code. But I am not sure if it is OK or if it will confuse

google
>search engine or some DNS Servers since our DNS server will still point

our
>domain name to our current(old) production server (old IP address).
>
>I am just wondering if the real world will see our domain name has two IPs
>since our new production server is located at public hosting company too.
>
>Or the question is if you use another IP to map to a domain name in
>production for the purpose of testing, will it hurt our current production
>site?
>
>Hopefully
>--
>Betty
>
>
>""Steven Cheng"" wrote:
>
such[color=darkred]
pages[color=darkred]
servername.[color=darkred]
and[color=darkred]
Please[color=darkred]
rights.[color=darkred]
servers)[color=darkred]
server[color=darkred]
file[color=darkred]
production[color=darkred]
each[color=darkred]
hard-coded[color=darkred]
the[color=darkred]
switch[color=darkred]
we[color=darkred]
>


Steven Cheng

2008-03-25, 7:56 am

Hi Betty,

Any progress on this issue? Have you determined which way to do for mapping
the server name?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

>From: stcheng@online.microsoft.com ("Steven Cheng")
>Organization: Microsoft
>Date: Fri, 21 Mar 2008 05:44:46 GMT
>Subject: RE: can this be solved using ASP?


>
>Hi Betty,
>
>I think host file solution should work for your own internal network since
>you can control the host files for your internal client machines or the
>local DNS server. However, for external network and environment, when they
>visit the ASP pages and visit the link, they'll get the actual IP through
>internet DNS server, I think it will exsit some difference between your
>internal clients. Do you think so?
>
>Sincerely,
>
>Steven Cheng
>
>Microsoft MSDN Online Support Lead
>
>
>Delighting our customers is our #1 priority. We welcome your comments and
>suggestions about how we can improve the support we provide to you. Please
>feel free to let my manager know what you think of the level of service
>provided. You can send feedback directly to my manager at:
>msdnmg@microsoft.com.
>
>This posting is provided "AS IS" with no warranties, and confers no rights.
>
>--------------------
><2mgmewLiIHA.4672@TK2MSFTNGHUB02.phx.gbl>
>
new[color=darkred]
>google
>our
IPs[color=darkred]
production[color=darkred]
>such
>pages
>servername.
>and
>Please
>rights.
>servers)
>server
>file
>production
>each
>hard-coded
>the
>switch
>we
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com