« Return to Thread: [OT] Apache error log

Re: [OT] Apache error log

by Jason Huck :: Rate this Message:

Reply to Author | View in Thread

Unfortunately that's normal. Lasso uses Apache to retrieve the include
files. The only real downside is that it clutters up your logs. One
solution is to raise the LogLevel in Apache, though that may cause
other things not to be logged that you'd like to know about. There's
another solution using mod_rewrite that we found here on the list. Bil
had something to do with it IIRC. This would go in your Apache config,
and assumes you use an '.inc' extension for your include files:

# disallow direct serving of .inc files
# this method should avoid cluttering up apache's
# error logs with subrequests.
# -------------------------------------------------------------------
RewriteCond %{REQUEST_URI}  ^.*\.inc$  [NC]
RewriteRule (.*)  - [L,NS,F]


- jason









On Wed, Jul 8, 2009 at 10:17 AM, Alexander Dewilde<ad@...> wrote:

> Dear list,
>
> I found a strange issue in the Apache2 log.
> The lasso site uses some include files which are in a separate directory and
> http access is denied in apache conf file.
>
> /webroot/default.lasso
> /webroot/inc-files/ ..............
>
> where default.lasso includes some files from the latter and
> /webroot/inc-files/ is configuerd 'deny from all' in apache conf file
>
> All is fine except the apache error log shows 'client denied by server
> configuration' always 2 times for each called include.
> The site runs ok though and this issue does not seem to affect performance,
> but it's something to look at, because as I understand .lasso files are
> handed over to lasso and are not handled by apache in any way except for
> returning lasso output to the client. Seems like apache is doing more than
> it should?
>
> Thanks for any insight on this...
>
> OSX box 10.4
> Apache 2.23
> LP8.55
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
tagSwap.net :: Open Source Lasso Code
<http://tagSwap.net/>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


 « Return to Thread: [OT] Apache error log