regisit

Active Member
Jul 31, 2013
28
1
3
cPanel Access Level
Root Administrator
As of Apache 2.4, we can no longer enable mod_rewrite logging in .htaccess. Now requires RewriteLogLevel specified in virtual host configuration. So I've followed the guides and added the following file containing "RewriteLogLevel 3".

/user/local/apache/conf/userdata/std/2_4/[account]/[domain]/rewrite.conf

Restarted Apache and checking /user/local/apache/logs/error_log, there's nothing logged to do with rewrites.

What am I missing?
 

regisit

Active Member
Jul 31, 2013
28
1
3
cPanel Access Level
Root Administrator
How is this custom file included? In httpd.conf, in each virtual host entry there are the lines:

# To customise this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2_4/[account]/[domain]/*.conf"

That include line is commented out and there are warnings galore in httpd.conf not to modify it. So how/where does our custom conf get included for a particular virtual host?
 

regisit

Active Member
Jul 31, 2013
28
1
3
cPanel Access Level
Root Administrator
My mistake: not correct format for 2.4. Should have been "LogLevel alert rewrite:trace3". Also needed to redistill (whatever that is) before it picked up the custom changes i.e. went to Apache Global Config, saved and restarted.