Macromedia colfusion mx 7 手册

下载
页码 170
98
Chapter 7:  Using Multiple Server Instances
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
    ServerAdmin admin@mysite.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
    ServerName RNIELSEN02
    ErrorLog logs/error.log
</VirtualHost>
<VirtualHost 127.0.0.1>
    ServerAdmin admin@mysite.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs2"
    ServerName rnielsenstore
    ErrorLog logs/error-store.log
  <IfModule mod_jrun20.c>
    JRunConfig Verbose true
    JRunConfig Serverstore "C:/JRun4/lib/wsconfig/mystore/jrunserver.store"
    JRunConfig Bootstrap 127.0.0.1:51002
  </IfModule>
</VirtualHost>
<VirtualHost 127.0.0.1>
    ServerAdmin admin@mysite.com
    DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs3"
    ServerName rnielsenemployee
    ErrorLog logs/error-employee.log
  <IfModule mod_jrun20.c>
    JRunConfig Verbose true
    JRunConfig Serverstore "C:/JRun4/lib/wsconfig/myemp/jrunserver.store"
    JRunConfig Bootstrap 127.0.0.1:51003
  </IfModule>
</VirtualHost>
...
9.
Restart Apache.
10.
(Optional) Store the application’s ColdFusion files in your external web server root directory.
11.
Test the applications under each virtual host.
Note: Remember that the web server connector doesn’t serve static content, such as HTML and 
images. Place these files under the web root or create a web server mapping to the ColdFusion 
web application root.
Configuring application isolation in Sun ONE Web Server
When using multiple virtual hosts with multiple server instances under Sun ONE Web Server, 
you create multiple Sun ONE Web Server instances, one for each ColdFusion server instance.
This section assumes that you have already created server instances, as described in 
.
To configure multiple server instances for application isolation when using Sun ONE 
Web Server:
Run the Web Server Configuration Tool multiple times, once for each Sun ONE Web Server 
server instance, and specify a different configuration directory and ColdFusion server instance 
each time. Ensure that you select the Configure Web Server for ColdFusion MX Applications 
check box (GUI) or use the 
-coldfusion
 option (command-line).