Solved

Dynamic Web site adding using ColdFusion

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Two nodes for updates and forwarding 8 51
Why addon domain redirects to the original domain? 8 62
WEB Service vs ??? 7 107
AWS Advice on using WHM/cPanel 1 69
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
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…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
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…

912 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

15 Experts available now in Live!

Get 1:1 Help Now