Solved

Dynamic Web site adding using ColdFusion

Posted on 2004-10-19
2
213 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 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
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…

734 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