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 Both sides next revision
litespeed_wiki:rewrite_logs [2013/08/13 19:41]
Michael
litespeed_wiki:rewrite_logs [2013/08/13 19:46]
Michael
Line 1: Line 1:
 ====== Enabling Rewrite Logs ====== ====== Enabling Rewrite Logs ======
  
-The first step to debugging rewrite rules is to enable rewrite logging. Once rewrite logging has been enabled, you will be able to see rewrite ​errors in your virtual host's error log (or your main error log if the virtual host uses the main error log). These log entries ​will tell you which rewrite rule is not working and what is going wrong.+The first step to debugging rewrite rules is to enable rewrite logging. Once rewrite logging has been enabled, you will be able to see rewrite log entries ​telling ​you which rewrite rule is not working and what is going wrong.
  
 This wiki will guide you through the steps to enabling rewrite logging both for native LiteSpeed Web Server installations and installations running off Apache configuration files. This wiki will guide you through the steps to enabling rewrite logging both for native LiteSpeed Web Server installations and installations running off Apache configuration files.
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, locate the virtual host that is having the problem. Rewrite log entries will go in the virtual host's main log, so make sure the virtual host's Log Level setting ​(WebAdmin console > Configuration > Virtual Hosts > Log) is set to ''​INFO''​ or ''​DEBUG''​. (Rewrite log entries are considered info level.)
  
 {{vhost_log_level.png?​700}} {{vhost_log_level.png?​700}}
Line 19: Line 19:
 {{rewrite_log_level.png?​700}} {{rewrite_log_level.png?​700}}
  
-Graceful restart so the changes will take affect.+Graceful restart so the changes will take effect.
  
 ====== For Installations Using Apache Configuration Files ====== ====== For Installations Using Apache Configuration Files ======
Line 34: Line 34:
  
   RewriteLog "/​usr/​local/​var/​apache/​logs/​rewrite.log"​   RewriteLog "/​usr/​local/​var/​apache/​logs/​rewrite.log"​
 +
 +Graceful restart LSWS so the changes will take effect.
  
 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]]. 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]].