|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
IIS Sharing Virtual Directory
Hi Guys,
I'm using IIS along with Active Server Pages. The server currently hosts multiple domains and I was wondering if it is possible to share a specific folder that that has some sctive server page files that are commonly used by some of the sites. So is it possible to place the files in one location and call the from the different websites using something like <!--#include virtual="/public/file1.asp"--> if it is possible how do I go about doing it, if not, is there a possible alternative? Server info Win2K Adv. Server sp3 Thanks |
|
#2
|
||||
|
||||
|
IIS virt. dirs
Of course!
Simply create a folder where you want to keep all your common scripts... e.g. I call mine "includes" and it sits under my wwwroot. Once you have your scripts in there, run the IIS MMC, right click on the domain for which you'd like to include the scripts dir, click "new -> virtual directory" - give it a name, I think you used "public", and your done. To refer to your virtual directory, use the #INCLUDE VIRTUAL statement, just like in your example. Last edited by stumpy : November 3rd, 2002 at 02:16 AM. |
|
#3
|
|||
|
|||
|
Thanks stumpy!
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > IIS Sharing Virtual Directory |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|