Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: mark_s_tt on January 02, 2007, 04:40:11 PM

Title: RewriteLog mod_rewrite logging
Post by: mark_s_tt 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.
Title: Re: RewriteLog mod_rewrite logging
Post by: byte 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/