473,472 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to "duplicate" web access ?

F C
I have http://localhost/myweb1 who redirect me to my pages.

I would like to have http://localhost/myweb2 which I would like to use the
same exact set of pages, except a different global.asa (application data
will be different).

If I duplicate pages, that is not a problem, but I would prefer not to
duplicate them.
How can I do this ?

Thanks.

François.
Jul 19 '05 #1
3 1479
"F C" <co********@wanadoo.fr.nospam> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl...
I have http://localhost/myweb1 who redirect me to my pages.

I would like to have http://localhost/myweb2 which I would like to use the
same exact set of pages, except a different global.asa (application data
will be different).

If I duplicate pages, that is not a problem, but I would prefer not to
duplicate them.
How can I do this ?


Create a virtual directory named "myweb2" that physically points to
\inetpub\wwwroot\myweb1. In your global.asa, write some IF/Then logic that
parses Request.ServerVariables("Path_Info") (or
Request.ServerVariables("URL")) to determine which folder is getting served
and then set your application data accordingly.

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #2
F C
That one possibility, but that's rather complex because my setup (or
instance creation/suppresion) program will have to modify global.asa,
instead of copying/deleting files.

Thanks.

François.

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> a écrit dans le message
news: c3*********@kcweb01.netnews.att.com...
"F C" <co********@wanadoo.fr.nospam> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl...
I have http://localhost/myweb1 who redirect me to my pages.

I would like to have http://localhost/myweb2 which I would like to use the same exact set of pages, except a different global.asa (application data
will be different).

If I duplicate pages, that is not a problem, but I would prefer not to
duplicate them.
How can I do this ?
Create a virtual directory named "myweb2" that physically points to
\inetpub\wwwroot\myweb1. In your global.asa, write some IF/Then logic

that parses Request.ServerVariables("Path_Info") (or
Request.ServerVariables("URL")) to determine which folder is getting served and then set your application data accordingly.

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/

Jul 19 '05 #3
Are the settings that need to be different such that they could be kept in a
text file and loaded by global.asa? If so, your setup program could add the
settings file to the "real" directory and then global.asa could load the
file associated with the virtual directory being used.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"F C" <co********@wanadoo.fr.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
That one possibility, but that's rather complex because my setup (or
instance creation/suppresion) program will have to modify global.asa,
instead of copying/deleting files.

Thanks.

François.

"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> a écrit dans le message
news: c3*********@kcweb01.netnews.att.com...
"F C" <co********@wanadoo.fr.nospam> wrote in message
news:uD**************@TK2MSFTNGP10.phx.gbl...
I have http://localhost/myweb1 who redirect me to my pages.

I would like to have http://localhost/myweb2 which I would like to use the same exact set of pages, except a different global.asa (application data will be different).

If I duplicate pages, that is not a problem, but I would prefer not to
duplicate them.
How can I do this ?


Create a virtual directory named "myweb2" that physically points to
\inetpub\wwwroot\myweb1. In your global.asa, write some IF/Then logic

that
parses Request.ServerVariables("Path_Info") (or
Request.ServerVariables("URL")) to determine which folder is getting

served
and then set your application data accordingly.

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running

IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/


Jul 19 '05 #4

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

Similar topics

6
by: Maria L | last post by:
I have a client who needs to copy an existing sale. The problem is the Sale is made up of three tables: Sale, SaleEquipment, SaleParts. Each sale can have multiple pieces of equipment with...
2
by: susanwinchell | last post by:
I have a table with only two columns (created from query of a much larger database). The first column contains many "duplicate" names or ID, and the second column contains values which need to be...
1
by: Andy L | last post by:
I have two identical databases running on two separate servers. I want to add a column to the following table: classified_cats { acid , name , parent } Running ALTER TABLE `classified_cats`...
0
by: postings | last post by:
Hi Microsoft need to reopen this bug... http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f4c529ae-4879-41a0-9f24-984923f20999 Visual Studio 2005 Pro (final) has...
2
by: ericnyc | last post by:
Hi, I am a newbee in C++ Please review this is what I wrote , what so ever I understood so far, My question is that I have to " Write a program C++ array that reads in an integer number and...
9
by: Tom_F | last post by:
To comp.databases.ms-access -- I just discovered, to my more than mild dismay, that some tables in my Microsoft Access 2003 database have duplicate numbers in the "AutoNumber" field. (Field...
3
by: ammie65 | last post by:
I have been trying to create a purchase order database in Access, and I have been successful in creating all the tables, queries and reports that I need. I have only one issue: I need to copy the...
0
by: BSB | last post by:
Hi, I generate a "Find Duplicate" query for one table that will return some records I want to capture those records in my VB code..... This is my code...pls guide me how to proceed.......
0
by: UT-BadBoy | last post by:
Hi, I've been working with ASP.NET for about a year so I'm still considering myself to be somewhat of a novice in this field. I am receiving this particualr error when trying to hit a...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.