Whatever message this page gives is out now! Go check it out!
<Context path="/" docBase="<absolute_path_to_CF_install_directory>\wwwroot" WorkDir="<cf_home>\runtime\conf\Catalina\localhost\tmp" aliases="/path1=<absolute_path_to_directory1>,/path2=<absolute_path_to_directory2>"></Context>Web server | Connector details |
Apache | The Web Server Configuration Tool adds the following elements to the Apache httpd.conf file:
|
IIS | The Web Server Configuration Tool adds the following elements at either the global level (default) or website level:
|
and you want to serve pages from the built-in web server's root directory, you can create a web server mapping to the corresponding directory under the built-in web server.wsconfig.exe [-options]./wsconfig [-options]Option | Description |
-ws | Specifies the web server, as follows:
|
{{-dir }} | Specifies the path to the configuration directory. |
-site | Specifies the IIS website name (case-sensitive). Specify All or 0 to configure the connector globally, which applies to all IIS websites. |
{{-host }} | Specifies the ColdFusion server address. The default value is localhost. |
-norestart | Specifies not to restart the web server. |
-cluster | Specifies the Tomcat cluster name. Use this option to define a connection to a Tomcat cluster instead of a single server. |
-l | Enables verbose logging for the connector. |
-upgrade | Upgrades existing configured connectors with newer modules from a newer wsconfig.jar file. |
-service | Specifies the Apache Windows service name. The default value is Apache. |
-bin | Specifies the path to the Apache server binary file (apache.exe in Windows, httpd on UNIX). |
-script | Specifies the path to the Apache UNIX control script file (apachectl, but slightly different with certain Apache variants, such as Stronghold). |
-v | Enables verbose output from the Web Server Configuration Tool. |
-list | Lists all configured web servers. |
-list -host server-host | Lists all Tomcat servers on the specified host. |
-remove | Removes a configuration. Requires the ws and either the dir or site options. |
-uninstall | Removes all configured connectors. |
{{-h }} | Lists all parameters. |
cf_root/runtime/bin/wsconfig.exe -ws iis -site "web31" -v |
cf_root/runtime/bin/wsconfig.exe -ws iis -site 0 -v |
cf_root/runtime/bin/wsconfig -ws Apache -bin /opt/apache2/bin/httpd -script /opt/apache2/bin/apachectl -dir /opt/apache2/conf -v |
cf_root/runtime/bin/wsconfig -ws Apache-bin /usr/bin/httpd -script /usr/bin/httpd -dir /etc/httpd/conf -coldfusion -v |
cf_root/runtime/bin/wsconfig.exe -ws apache -dir "c:\program files\apache group\apache2\conf" -coldfusion -v |
Include "Apache_install\Apache Software Foundation\Apache2.2\conf\mod_jk.conf"# # Load mod_jk module
LoadModule jk_module "CF_install\config\wsconfig\1\mod_jk.so"
# Where to find workers.properties
JkWorkersFile "CF_install\config\wsconfig\1\workers.properties"
JkMountFile "CF_install\config\wsconfig\1\uriworkermap.properties"
# Where to put jk logs
JkLogFile "CF_install\config\wsconfig\1\mod_jk.log"
# Where to put jk shared memory
JkShmFile "CF_install\config\wsconfig\1\jk_shm"
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
AddHandler jakarta-servlet .cfm .cfml .cfc .cfr .cfswf
Alias /CFIDE "CF_install\cfusion\wwwroot\CFIDE"
<Directory "CF_install\cfusion\wwwroot\CFIDE">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Files ~ ".hbmxml$">
Order allow,deny
Deny from all
</Files>cf_root/runtime/bin/wsconfig.exe -ws iis -site 0 -v...
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerAdmin admin@yoursite.com
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
ServerName SERVER02
ErrorLog logs/error.log
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerAdmin admin@yoursite.com
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs2"
ServerName mystore
ErrorLog logs/error-store.log
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerAdmin admin@yoursite.com
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs3"
ServerName myemployee
ErrorLog logs/error-employee.log
</VirtualHost>
...