Solved

Dynamic Web site adding using ColdFusion

Posted on 2004-10-19
2
208 Views
Last Modified: 2013-12-24
I want to let a customer add a web site using a subdomain on my web site dynamically.

There's some solution to add a DNS record dynamically using a Command prompt command, but I also seek a way to define a web site as well to host this new subdomain.

Do I have to add a new subdomain in IIS or is there an alternate method ?

Regards
0
Comment
Question by:Michael_O
2 Comments
 
LVL 7

Accepted Solution

by:
INSDivision6 earned 500 total points
ID: 12354552
From MSDN:

"You can use the command-line script iisweb.vbs, stored in the systemroot\System32\ directory, to create Web site configurations on local or remote Windows Server 2003 servers running IIS. This command does not create or destroy content, but simply sets up the directory structure and some IIS configuration files.

When you use Iisweb.vbs to create a new Web site, you specify only the basic properties needed to create the site and identify its contents. Iisweb.vbs uses the same default properties that IIS Manager uses when establishing new Web sites, and adheres to the same rules for inheriting properties. To configure the more advanced properties of the site, use IIS Manager.
. . . . ."

So, create script - VBS or JS - (or use script above) and run WIndows Scripting Host via CFEXECUTE (or a better replacement: http://www.cftagstore.com/tags/cfxexec.cfm) to execute this script (cscript.exe launched in cmd.exe).  Most administrative tasks for IIS are available via scripting.

0
 

Author Comment

by:Michael_O
ID: 12356502
Thank you for your response.

By the way, Is there any way to host a subdomain without adding DNS & IIS records ?
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now