How To Create A Virtual CFIDE Directory Mapping In Apache

Author: Steven Neiland

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Most ColdFusion installs use the IIS webserver, so creating a common mapping to the CFIDE directory is a straight forward task of using the IIS virtual directory mapping tool.

However if like me you prefer the Apache HTTPD webserver then you do not have the luxury of a gui tool. Fortunately Apache makes this very easy to do, just follow these steps.

Step 1:Ensure Mod_Alias is Installed

First ensure that the file exists in the apache modules directory. Then open the httpd.conf file and locate the "Loadmodules" section. For slackware users it can be located at "/etc/httpd/httpd.conf". Ensure that the following line exists and is uncommented.

LoadModule alias_module modules/

Step 2: Set the Options in the Relevant Directory Node in httpd.conf

With the httpd.conf still open locate the "Directory" section corresponding to the website you want to add CFIDE to and ensure that the "Options" directive says: "Indexes Includes MultiViews FollowSymLinks".

<Directory "[path]/[to]/my_site_htdocs/">
Options Indexes Includes MultiViews FollowSymLinks

Step 3: Define the Alias Mapping

Now scroll down to find the alias_module section and add the following line to create the alias.

<IfModule alias_module>
Alias /CFIDE "[path]/[to]/CFIDE"

Step 4: Restart Apache and Test

To apply the changes simply restart apache and visit http://yourdomain/CFIDE/administrator. If the changes have worked you should see the ColdFusion Administrator login page.

For slackware users use the following command to restart apache.

/etc/rc.d/rc.httpd restart

Reader Comments

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain advertisments or appear to be created for the purpose of link building, will not be published.

Archives Blog Listing