Yeah Russ, I thought that might be it when I was working this last
night. I'm serving up cfml content out of the root just fine, just not
getting my resources straight. I'll check my logs, but just in case,
here's what I've been trying, but still not having any luck (any hints
on doing this better will be appreciated):
<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot "F:\newwebroot"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
<Directory "F:\newwebroot">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.cfm
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
<IfModule alias_module>
Alias /resourcelib "F:\resources"
</IfModule>
<Directory "F:\resources">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName serv.myserver.com
ServerAlias serv.myserver.com
ErrorLog logs/serv.myserver.com-error_log
CustomLog logs/serv.myserver.com-access_log common
</VirtualHost>
Russ wrote:
> Latest version of Apache requires that you add a <Directory> entry to allow
> access to that directory. Something like
>
> <Directory "F:/resources">
> Options FollowSymLinks
> AllowOverride None
> Order deny,allow
> Allow from all
> </Directory>
>
>
> You can check the error log to see what the problem is.
>
> Don't get discouraged. Apache beats the pants off IIS, but it has a bit of
> a learning curve.
>
> Russ
>
>> -----Original Message-----
>> From: Cutter (CFRelated) [mailto:[EMAIL PROTECTED]
>> Sent: Friday, January 19, 2007 6:29 PM
>> To: CF-Talk
>> Subject: SOT: Apache config
>>
>> Quick question. Trying to setup my CF environment on Apache instead of
>> IIS. I'm using the Virtual Hosts file, and running multiple domains ok,
>> after a bumpy start. Now another issue, one of my domains requires a
>> virtual directory, whereby the setup kinda works like this:
>>
>> http://serv.myserver.com = "F:\newwebroot"
>>
>> http://serv.myserver.com/resources = "D:\resources"
>>
>> So, I set up the alias in the config for that virtual host:
>>
>> Alias /resources "D:\resources"
>>
>> But, I'm not getting any content. None of the images I am calling are
>> coming through:
>>
>> http://serv.myserver.com/resources/myImage.jpg
>>
>> Now, the folder name is correct, the files are there, and I'm not
>> receiving errors (other than red X's for no content), so I don't know
>> what's next. Guess it's my own fault for living in a Windows world as
>> long as I have, and forgetting my *nix days, but I'm just looking for
>> some good direction. Anyone?
>>
>>
>> Cutter
>> _____________
>> http://blog.cutterscrossing.com
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267042
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4