Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Dynamic Web site adding using ColdFusion

Posted on 2004-10-19
2
Medium Priority
?
217 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 2000 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

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
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 Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
Suggested Courses

971 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