Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:rewrite_logs [2013/08/13 19:05]
Michael
litespeed_wiki:rewrite_logs [2013/08/13 19:41]
Michael
Line 7: Line 7:
 ====== For Native LSWS Installations ====== ====== For Native LSWS Installations ======
  
-Enabling rewrite logging in the WebAdmin console is very simple. First, you need to locate the virtual host that is having the problem, then you just raise Log Level in your Rewrite settings above ''​0''​. Before that, though, you should check the vhost'​s log level. Rewrite log entries will go in the virtual host's main log, so make sure the virtual host's Log Level setting is set to ''​INFO''​ or ''​DEBUG''​. (WebAdmin console > Configuration > Virtual Hosts > Log) (Rewrite log entries are considered info level.)+Enabling rewrite logging in the WebAdmin console is very simple. First, you need to locate the virtual host that is having the problem. Then you just raise Log Level in your Rewrite settings above ''​0''​. Before that, though, you should check the vhost'​s log level. Rewrite log entries will go in the virtual host's main log, so make sure the virtual host's Log Level setting is set to ''​INFO''​ or ''​DEBUG''​. (WebAdmin console > Configuration > Virtual Hosts > Log) (Rewrite log entries are considered info level.)
  
 {{vhost_log_level.png?​700}} {{vhost_log_level.png?​700}}
Line 15: Line 15:
 {{enable_rewrite_log.png?​700}} {{enable_rewrite_log.png?​700}}
  
-Start the log level at a lower level so that you don't get flooded with information. Raise the level if you don't find the errors you need.+Start the log level at a lower level so that you don't get flooded with information. Raise the level if you don't find the errors you need. (Raising your rewrite log level may slow down your server.)
  
 {{rewrite_log_level.png?​700}} {{rewrite_log_level.png?​700}}
Line 22: Line 22:
  
 ====== For Installations Using Apache Configuration Files ====== ====== For Installations Using Apache Configuration Files ======
 +
 +If your installation of LSWS is using Apache'​s configuration files, you will need to enable rewrite logging in your Apache configurations.
 +
 +In order to enable rewrite logging, you will first need to locate the virtual host where the error is occurring. If you are using cPanel, everything is usually in your ''​httpd.conf''​ file. Other setups may have virtual hosts in separate directories.
 +
 +In your virtual host settings, add the RewriteLogLevel directive followed by a number for how detailed you want your logs to be. ''​1''​ is least detailed. ''​9''​ is most detailed. ''​0''​ will turn off rewrite logging. For example:
 +
 +  RewriteLogLevel 2
 +
 +You will also need to designate a file for the rewrite log. This is done at the server level with the RewriteLog directive. For example:
 +
 +  RewriteLog "/​usr/​local/​var/​apache/​logs/​rewrite.log"​
 +
 +More information on Apache rewrite log configuration can be found in [[http://​httpd.apache.org/​docs/​2.2/​mod/​mod_rewrite.html|the Apache mod_rewrite documentation]].