473,486 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

IIS Web Sites

How do you create a virtual website on a win2000 or 2003 server using
directoiry services. I need to set

Port
Header
HomeDirectory
Default Page
Tuning,
etc.

I have no problems doing virtual directories but the virtual web site
creation eludes me.
Thanks

Toby.
Nov 17 '05 #1
2 927
Hi Toby,

Based on my research and experience, the following Knowledge Base article
is useful to you. Please refer to it carefully.

HOW TO: Create a Virtual Web Server by Using an ADSI Script in IIS
http://support.microsoft.com/default...b;en-us;315599

You can find the mkw3site.vbs file in the "\Inetpub\AdminScripts" directory.

For your convenience, I have also written a simple code snippet for your
reference.

"...
Dim w3svc

Set w3svc = GetObject("IIS://localhost/w3svc")

Set NewWebServer = w3svc.Create("IIsWebServer", 3)

NewWebServer.ServerSize = 1
NewWebServer.ServerAutoStart = 1
NewWebServer.ServerComment = "Third Web Site"
NewWebServer.ServerBindings = Array(":1010:")
NewWebServer.SetInfo

Set NewWebServer = GetObject("IIS://localhost/w3svc/3")

Set NewDir = NewWebServer.Create("IIsWebVirtualDir", "ROOT")
NewDir.Path = "F:\Inetpub\AdminScripts"
NewDir.AccessRead = True
NewDir.SetInfo
NewDir.AppCreate (True)

NewWebServer.Start
..."

Does it answer your question? If I have misunderstood your concern, please
feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #2
Although Mr. Yang pretty much covered it all for you.

If you happen to need any additional help, you should try microsoft.public.windows.server.scripting
"Toby Riley" <to********@exmlsystems.com> wrote in message news:O1**************@tk2msftngp13.phx.gbl...
How do you create a virtual website on a win2000 or 2003 server using
directoiry services. I need to set

Port
Header
HomeDirectory
Default Page
Tuning,
etc.

I have no problems doing virtual directories but the virtual web site
creation eludes me.
Thanks

Toby.

Nov 17 '05 #3

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

Similar topics

1
1864
by: developerqs | last post by:
I have developed an engine that I use for all of my clients web sites. They are all the same type of site, some use features A, B, & C. Some web sites just use features A & B. My issue is that...
55
5101
by: Jonas Smithson | last post by:
I've seen a few attractive multi-column sites whose geometry is based on pure CSS-P, but they're what you might call "code afficionado" sites, where the subject matter of the site is "coding...
9
2114
by: Heather | last post by:
I have created a database application consisting of a front end and backend file. Data entry and administration of the application are done at a central location. The next requirement is to be able...
6
1449
by: Stan | last post by:
We have several intranet ASP.NET web sites. Users log on to the sites by using form authentication and custom security (user names and passwords are stored in the database). If a user logs on to...
5
10491
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
4
2891
by: Frankie | last post by:
I'm writing a small C# utility application that creates new Web Sites via ADSI. It seems to work just fine for the most part -- meaning that IIS Metabase entries look either identical or "different...
4
1431
by: Christopher J. Walker | last post by:
Hello, I am trying to create a website on port 8888 with VisualStuidio 2005. When I go to create a new project or migrate from an old one, everything seems to work fine, but when I go to build...
1
4940
by: petergjansen | last post by:
Hi, How can I access the trusted sites list for the currently logged in user programmatically? Is there some sort of IE API which I can call to get this information or is it stored in a file...
5
1720
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
I'm developing a service which is two sites: a Mobile Site and a PC-Based Site. The whole goal is to have them operate very similarly but, of course, there will be many differences: 1....
2
1530
by: Sachin | last post by:
Hi All, Can someone please give me the list of good sites for ASP.NET,CSS, HTML/DHTML, Java Script? Basically, what I want is web sites where I can see lots of examples, different design...
0
7099
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
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
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
7319
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
5430
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,...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1378
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 ...
1
598
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.