Author: Steven Neiland
Published:

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 mod_alias.so 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/mod_alias.so

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/">
--snip--
Options Indexes Includes MultiViews FollowSymLinks
--snip--
</Directory>

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>
--snip--
Alias /CFIDE "[path]/[to]/CFIDE"
--snip--
</IfModule>

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

What Do You Think?

Reader Comments

Post a Comment

Comment Etiquette:

  • 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 or appear to be advertisments, will not be published.
  • Comments that appear to be created for the purpose of linkbuilding to commercial sites will be removed.

We are all adults here so play nice.

*
*



Archives Blog Listing

Tag Listing

Learn CF In A Week

Treehouse

 
Fork me on GitHub