I don't have the mapping issues that have been talked about here, but my solution means that I now have an odd error report in the logs that I can't explain.


We wanted to keep the site encapsulated -- everything in one directory. So, running WinNT CFMX6.1 with Apache 2.0.47, we use this structure for all of the sites we make:

1- no CFMX mappings at all
2- webroot is D:\web\sitename.com\
3- "application" directory is removed from web-accessibility using .htaccess at D:\web\sitename.com\application\.htaccess
4- custom tags go here D:\web\sitename.com\application\tags\
5- cfcs go here D:\web\sitename.com\application\libs\ or here D:\web\sitename.com\application\objects\


...and so forth. The main problem we have is not easily being able to share code between sites -- but that would break the encapsulation goal, anyway. But it does allow us to refer to cfcs and tags and all that from the webroot without mapping.

Here's the weird thing: if a page at, say, /foo.cfm calls a method in a cfc under the application directory (say, "application.objects.bar"), an error is reported in the Apache error logs. The code executes just fine, but the error is logged. The HTTP call was to /foo.cfm -- outside the blocked directory -- but then CF executes code in the blocked directory and Apache records an error. Why is Apache even aware that this call was happening?

The error reported in the log is:

[Thu Oct 02 13:22:50 2003] [error] [client 67.17.249.5] client denied by server configuration: D:/web/sitename.com/application/objects/subscription_utils.cfc

The .htaccess directive we're using is:

<Directory /application/>
        Order Deny,Allow
        Deny from All
</Directory>

--

    Ben Curtis
    WebSciences International
    http://www.websciences.org/
    v: 310 478 6648
    f: 310 235 2067






----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to