PDA

View Full Version : [ubuntu] Virtual host /Coldfusion Problem



tgs1952
February 1st, 2009, 03:50 AM
Shortly after receiving my new system 76 machine w/ubuntu I set up a virtual host in my home directory.

Later I installed Coldfusion8. Install went ok - cfm files in my virtual directory open and are parsed correctly.

However, during the install I gave /var/www/html as the root directory for CF Administrator and it was installed there. That is how I set it up at work on Fedora 7 and it works fine. I find however that I can't access it at http://localhost/CFIDE/Administrator on Ubuntu. In fact I can't access anything in that directory except localhost/phpmyadmin.

I am assuming it is something with my 'hosts' file which reads:

127.0.0.1 localhost.localdomain localhost dev.example.com www.dev.example.com

Or do I need to set up a virtual host for /var/www/html?

Thanks in advance

RealPSL
February 1st, 2009, 10:19 PM
The default document root is /srv/www. As a result you have to either define a new virtual host or a little easier define a directory alias:


Alias /CFIDE /var/www/html/CFIDE

<Directory /var/www/html/CFIDE>
Order allow,deny
Allow from all
</Directory>

This should make http://localhost/CFIDE or which ever virtual host you add it to work.

tgs1952
March 5th, 2009, 04:52 AM
Really sorry for responding so late - but that did work.