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. 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/
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/
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/
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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`...
|
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...
|
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...
|
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...
|
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...
|
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.......
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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: 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,...
|
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...
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |