Enable mod_write debug logging
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?
-
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? 0 -
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. 0 -
Hello, Thank you for updating us with the outcome. Note that documentation on this process is available at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation 0 -
Ah yes, but that's docs for EA4. Google search brings up Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation and no mention of need to restart Apache there! 0
Please sign in to leave a comment.
Comments
4 comments