Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dynamic Web site adding using ColdFusion

Posted on 2004-10-19
2
Medium Priority
?
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

670 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