Koozali.org: home of the SME Server

RewriteLog mod_rewrite logging

Offline mark_s_tt

  • **
  • 37
  • +0/-0
RewriteLog mod_rewrite logging
« on: January 02, 2007, 04:40:11 PM »
Just wondering, has anyone successfully got Rewrite Logging to work on sme 7.

I tried the following (Please don't flame me I'm just learning the template system) to enable logging in httpd.conf:

Code: [Select]
vi /etc/e-smith/templates/etc/httpd/conf/httpd.conf/45RewriteLog

Add:
RewriteLog /var/log/httpd/rewrite_log
RewriteLogLevel 9

expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86httpd-e-smith restart


The empty log file was then created by apache at this point, but when I click any links from a webpage that use rewrite rules hosted on the same SME Server, the rules work but the log files stay empty.

Thanks
Mark.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: RewriteLog mod_rewrite logging
« Reply #1 on: January 02, 2007, 10:54:02 PM »
Quote from: "mark_s_tt"

I tried the following (Please don't flame me I'm just learning the template system)[...]

Have a read of this...

http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html#TEMPLATES

It's really an excellent guide.

Quote

to enable logging in httpd.conf:

[code]vi /etc/e-smith/templates/etc/httpd/conf/httpd.conf/45RewriteLog


Once you have read the devguide you will know never edit the templates in that directory, we would want to create our own in /etc/e-smith/templates-custom/
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!