PDA

View Full Version : Virtual directory not working


tristanlee85
29th July 2008, 16:35
I am trying to configure a virtual directory to my ColdFusion administrator. I currently have this:

#
# This is the virtual directory for CFIDE
#
ScriptAlias /CFIDE/ "/var/www/html/CFIDE/"
<Directory "/var/www/html/CFIDE">
AllowOverride None
Order allow,deny
Allow from all
</Directory>

When I go to www.mydomain.com/CFIDE/administrator/ I get a 403, but when I go to www.mydomain.com/CFIDE/administrator/index.cfm it works fine except images won't show and I get a 500 error. I added "index.cfm" to my DirectoryIndex line too.

till
29th July 2008, 18:37
Please have a look in the error log of the website to get a detailed error message for the 500er error.

tristanlee85
29th July 2008, 19:31
When trying to access: www.cfcoding.com/CFIDE/administrator I get

[Tue Jul 29 12:27:49 2008] [error] [client 208.44.219.130] attempt to invoke directory as script: /var/www/html/CFIDE/administrator/

When trying to view an image: http://www.cfcoding.com/CFIDE/administrator/images/adobelogo.gif I get


[Tue Jul 29 12:30:57 2008] [error] [client 208.44.219.130] (13)Permission denied: exec of '/var/www/html/CFIDE/administrator/images/adobelogo.gif' failed
[Tue Jul 29 12:30:57 2008] [error] [client 208.44.219.130] Premature end of script headers: adobelogo.gif

falko
30th July 2008, 16:36
Can you try
ScriptAlias /CFIDE "/var/www/html/CFIDE"
instead?

The problem with your images is that they are inside the /var/www/html/CFIDE directory, so Apache treats them like scripts...