简体   繁体   English

Coldfusion:在CF8 Enterprise上建立第二个网站

[英]Coldfusion: Setting up a second website on CF8 Enterprise

Windows 2008 Server R2 64bit, ColdFusion8 Enterprise Edition (multi-server configuration), Plesk Windows 2008 Server R2 64位,ColdFusion8企业版(多服务器配置),Plesk

Recently purchased dedicated hosting on Hostgator and set up a website with help from a server guy. 最近在Hostgator上购买了专用主机,并在服务器人的帮助下建立了一个网站。 I'm doing a second site on my own this time. 我这次正在做第二个网站。 I've successfully created the new site in plesk, pointed the domain etc, but now need to set up a new instance of ColdFusion for this new site and I'm not sure how to go about it. 我已经成功地在plesk中创建了新站点,指向了域等,但现在需要为这个新站点设置一个新的ColdFusion实例,我不知道该怎么做。 From my googling, I'm guessing it's simply a case of setting up a new "instance", which can be done via the coldfusion administrator. 从我的谷歌搜索,我猜它只是建立一个新的“实例”的情况,这可以通过coldfusion管理员完成。 Is this correct? 这个对吗? Is there anything else I need to know? 还有什么我需要知道的吗? Any gotchas waiting to bite me? 有没有等待咬我的陷阱?

Thanks in advance for any help. 在此先感谢您的帮助。

Well you don't need to set up a new CF instance for a new website: there's not a one-to-one relationship between the two ideas. 嗯,你并不需要建立一个新的CF实例的一个新网站:有没有这两个概念之间的一个一对一的关系。

The minimum you really need to do is to set up the new website, in a directory within the CF application root, or within a CF-mapped directory if the dir is outside that root, and then run the web server connector (wsconfig.exe) to configure the website to pass requests for CF files to CF. 您真正需要做的最小的事情是设置新网站,在CF应用程序根目录下的目录中,或者如果dir在该根目录之外,则在CF映射目录中,然后运行Web服务器连接器(wsconfig.exe) )配置网站将CF文件的请求传递给CF.

On a standard install, wsconfig.exe is located in the [coldfusion]/runtine/bin dir, and on a multiserver install it's in [JRun]/bin. 在标准安装中,wsconfig.exe位于[coldfusion] / runtine / bin目录中,并且在多服务器上安装它在[JRun] / bin中。

If you do add a new instance, you still need to run wsconfig to connect the website to the CF instance. 如果确实添加了新实例,则仍需要运行wsconfig将网站连接到CF实例。

user460114, new instance == new "server", so when first instance crashes for some reason, second will still run because it uses separate heap space and lives it's own life. user460114,new instance == new“server”,所以当第一个实例由于某种原因崩溃时,第二个仍然会运行,因为它使用单独的堆空间并且过着它自己的生命。 You could use this for some other purpose like failover instance, or cluster, or staging instance. 您可以将此用于其他目的,例如故障转移实例,群集或暂存实例。 It's not needed in your case. 在你的情况下不需要它。

You need to need to make new directory in webroot, here's example: 您需要在webroot中创建新目录,这是示例:

C:\\inetpub\\www\\old_site C:\\的Inetpub \\ WWW \\ old_site

C:\\inetpub\\www\\new_site C:\\的Inetpub \\ WWW \\ NEW_SITE

And set new_domain.com to point to ..\\new_site, and leave old_site.com point to ..\\old_site. 并将new_domain.com设置为指向.. \\ new_site,并将old_site.com指向.. \\ old_site。

Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM