473,396 Members | 1,780 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Duplicate web site for testing

I have a fairly complicated web site with multiple sub-folders running on
W2k server (IIS5?).

I would like to duplicate this to another web site on the same server for
testing. For instance, the current root web of the server is located at
F:\Web. The production site is F:\Web\MyApp. I want to create another site
at F:\Web\MyAppTest.

The only thing that prevents me from just copying everything from one to the
other is the links and includes of the pages, such as:

<!--#include virtual="/MyApp/Shared/Server/DbLibrary.asp" -->
<link REL="stylesheet" TYPE="text/css"
HREF="/MyApp/Shared/Style/Style.css">

I then need to go thru every source file, and change /MyApp to /MyAppTest.

Is there a way to accomplish this via IIS, or by changing the way I
reference the includes and link?

tia,

Bob M..
Jul 19 '05 #1
7 1625
Bob Murdoch wrote on 18 jun 2004 in
microsoft.public.inetserver.asp.general:
I have a fairly complicated web site with multiple sub-folders running
on W2k server (IIS5?).

I would like to duplicate this to another web site on the same server
for testing. For instance, the current root web of the server is
located at F:\Web. The production site is F:\Web\MyApp. I want to
create another site at F:\Web\MyAppTest.

The only thing that prevents me from just copying everything from one
to the other is the links and includes of the pages, such as:

<!--#include virtual="/MyApp/Shared/Server/DbLibrary.asp" -->
<link REL="stylesheet" TYPE="text/css"
HREF="/MyApp/Shared/Style/Style.css">

I then need to go thru every source file, and change /MyApp to
/MyAppTest.

Is there a way to accomplish this via IIS, or by changing the way I
reference the includes and link?


There are many ways to change /MyApp/ to /MyAppTest/ in multiple files.

Do not try to change /MyApp to /MyAppTest because you could end up
somewhere with /MyAppTestTest/

http://www.google.com/search?q=repla...multiple.files
[724 hits]

I would use editpad.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Bob Murdoch wrote on 18 jun 2004 in
microsoft.public.inetserver.asp.general:
I would like to duplicate this to another web site on the same server
for testing. For instance, the current root web of the server is
located at F:\Web. The production site is F:\Web\MyApp. I want to
create another site at F:\Web\MyAppTest.


There are many ways to change /MyApp/ to /MyAppTest/ in multiple files.

Do not try to change /MyApp to /MyAppTest because you could end up
somewhere with /MyAppTestTest/


<G>
I wasn't looking for a way to change those strings, I was looking for a way
*not* to have to change those strings.

That's it, I'm hiring a tech writer to handle my postings to news groups.
They will hopefully do a much better job than trying to get my point across
<g>.

Bob M..
Jul 19 '05 #3
"Bob Murdoch" <ra***********@erols.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
I have a fairly complicated web site with multiple sub-folders running on
W2k server (IIS5?).

I would like to duplicate this to another web site on the same server for
testing. For instance, the current root web of the server is located at
F:\Web. The production site is F:\Web\MyApp. I want to create another site at F:\Web\MyAppTest.


What I wound up doing was to create a new folder F:\WebTest, and copied
everything from F:\Web into it. I then added a new website to IIS,
listening to port 8080. This setup seems to work well, except when the
customer is behind a firewall that only let's port 80 out.

I welcome any other ideas.

Bob M..
Jul 19 '05 #4
"Bob Murdoch" <ra***********@erols.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
I have a fairly complicated web site with multiple sub-folders running on
W2k server (IIS5?).

I would like to duplicate this to another web site on the same server for
testing. For instance, the current root web of the server is located at
F:\Web. The production site is F:\Web\MyApp. I want to create another site at F:\Web\MyAppTest.

The only thing that prevents me from just copying everything from one to the other is the links and includes of the pages, such as:

<!--#include virtual="/MyApp/Shared/Server/DbLibrary.asp" -->
<link REL="stylesheet" TYPE="text/css"
HREF="/MyApp/Shared/Style/Style.css">

I then need to go thru every source file, and change /MyApp to /MyAppTest.

Is there a way to accomplish this via IIS, or by changing the way I
reference the includes and link?


Setup a second virtual server, either using Host Headers or a different
port - then you wouldn't have to change any paths or references. Create
your new server root at F:\TestWeb and copy the files under there to
F:\TestWeb\MyApp.
http://www.microsoft.com/windows2000...re/iiaddvs.htm

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #5
On Fri, 18 Jun 2004 14:35:22 -0400, "Bob Murdoch"
<ra***********@erols.com> wrote:
I have a fairly complicated web site with multiple sub-folders running on
W2k server (IIS5?).

I would like to duplicate this to another web site on the same server for
testing. For instance, the current root web of the server is located at
F:\Web. The production site is F:\Web\MyApp. I want to create another site
at F:\Web\MyAppTest.

The only thing that prevents me from just copying everything from one to the
other is the links and includes of the pages, such as:

<!--#include virtual="/MyApp/Shared/Server/DbLibrary.asp" -->
<link REL="stylesheet" TYPE="text/css"
HREF="/MyApp/Shared/Style/Style.css">

I then need to go thru every source file, and change /MyApp to /MyAppTest.

Is there a way to accomplish this via IIS, or by changing the way I
reference the includes and link?


What's the issue? You have a file structure like this:

c:\inetpub\site1\myapp\shared...

You create a new site in a structure like:

c:\inetpub\site2\myapp\shared...

The root on the first is at c:\inetpub\site1, the second is at
c:\inetpub\site2 and all your relative links match just fine.

Jeff
Jul 19 '05 #6
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:ca*********@kcweb01.netnews.att.com...
Is there a way to accomplish this via IIS, or by changing the way I
reference the includes and link?


Setup a second virtual server, either using Host Headers or a different
port - then you wouldn't have to change any paths or references. Create
your new server root at F:\TestWeb and copy the files under there to
F:\TestWeb\MyApp.


Do great minds think alike? I did just that exact thing. Thanks for
confirming that it's the right approach.

Bob M..
Jul 19 '05 #7
"Bob Murdoch" <ra***********@erols.com> wrote in message
news:e2*************@TK2MSFTNGP10.phx.gbl...
"Bob Murdoch" <ra***********@erols.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
I have a fairly complicated web site with multiple sub-folders running on W2k server (IIS5?).

I would like to duplicate this to another web site on the same server for testing. For instance, the current root web of the server is located at
F:\Web. The production site is F:\Web\MyApp. I want to create another

site
at F:\Web\MyAppTest.


What I wound up doing was to create a new folder F:\WebTest, and copied
everything from F:\Web into it. I then added a new website to IIS,
listening to port 8080. This setup seems to work well, except when the
customer is behind a firewall that only let's port 80 out.

I welcome any other ideas.


Good job.

Use Host Headers then - see my previous post as well as:
http://www.iisfaq.com/Default.aspx?tabid=2523

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lowell Kirsh | last post by:
I have a script which I use to find all duplicates of files within a given directory and all its subdirectories. It seems like it's longer than it needs to be but I can't figure out how to shorten...
8
by: David Beardsley | last post by:
Is there no way to refer to an existing rule to set a value for a new rule short of generating a style sheet server side? For example: div.a {color: blue;} div.b {color: div.a.color} ...
6
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario,...
3
by: dnuos | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Here's some details: ...
4
by: Aloysius Maria Selvam | last post by:
Hello, We have a problem in our web application. The error reported is given with in brackets : You can see the folder name "/Home/Controller/ getting repeated in the URL. For you information ...
8
by: mindwarp | last post by:
Hi, When a user submits / posts data my php script Inserts data into my database. If they refresh the script or click back and click submit again I get duplicate record. Is there an easy...
4
by: afr0ninja | last post by:
Hello! I'm still rather new to using code in access. I've come across a problem that I'm having difficulty troubleshooting. Any assistance would be greatly appreciated! I've set up a form...
5
by: jennwilson | last post by:
Using Access 2000 - I have a query that is suppose to return the records from table within specified time range and find matching data from another table . Table houses Clinician name, location...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.