[users@httpd] virtualhost "CustomLog not allowed here", RewriteEngine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PROBLEM:
Unable to figure out how to use .htaccess to write a custom log file.

EXAMPLE ERROR:
[Sat Nov 12 12:18:48 2005] [alert] [client 72.14.207.99] /home/virtual/site84/fst/var/www/html/.htaccess: CustomLog not allowed here


DOT-HTACCESS:
########################################
# htaccess file, stripped down for debugging
#
# adapted from a very old webpage:
#    http://apache-server.com/tutorials/ATimage-theft.html
#
#########################################
SetEnvIfNoCase Referer      "!^http://myurl"            not_local_ref=1
SetEnvIfNoCase Request_URI  "\.(gif|jpg|png|jpeg|mov|avi|mpg|mp3)"  is_image=1
RewriteEngine  on
RewriteCond    ${ENV:not_local_ref} =1
RewriteCond    ${ENV:is_image}      =1
RewriteRule .* - [Last,Env=this_attempt:1]
CustomLog mylog_log        CLF   env=this_attempt


BACKGROUND:
New to Apache, yet am the admin for my personal
website.

My hosting service is supossedly running 1.3.22, but am
not yet certain. 

The default log files that were setup by the hosting service
are located in /var/log/httpd, which is owned by root and
readble but not writable by everyone else,
drwxr-xr-x    2 root     root    httpd/

I do not know if FollowSymLinks has been enabled, as seems
to be necessary according to:

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux