System information
Adobe documentation - Confidential
SELinux requires permissions to allow apache to read the web root, we will copy the permissions from
/var/www (the default apache web root on RHEL 6, using the --reference flag) and apply it to /www (our
web site partition).
# chcon -R --reference=/var/www /www
Note: When you add new files to the web root be sure that the permissions are correct.
Configure Default Site
Edit httpd.conf and change the DocumentRoot from /var/www/html to your new default site root
/www/default/wwwroot
Next tell apache that it is ok to serve files to the public from /www by adding:
<Directory "/www">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Restart apache:
service httpd restart
Test apache installation by visiting http://127.0.0.1/index.html
Create an alias for /CFIDE/scripts
The /CFIDE/scripts uri is used by ColdFusion to serve static assets such as JavaScript, css utilized by tags
that provide client side functionality. See Table 2.x for a listing of tags that require assets in
/CFIDE/scripts, if your ColdFusion applications do not utilize these features you can move on to Lock
Down CFIDE and other URIs.
Create an alias in httpd.conf using the following:
Alias /cf-scripts /opt/cf11/cfusion/wwwroot/CFIDE/scripts/
In the above line we have created a virtual alias /cfide-scripts/ and pointed it to the file path
corresponding to the /CFIDE/scripts/ directory.
Restart Apache and browse to /cf-scripts/cfform.js and ensure that a JavaScript file loads.
If you plan to use the built-in web server for accessing ColdFusion administrator then you must also add
an alias by adding a Context tag inside the Host tag of server.xml located:
/opt/cf11/cfusion/runtime/conf/server.xml
Adobe documentation - Confidential