Wiki
 

Differences

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

Link to this comparison view

litespeed_wiki:rewrite_logs [2013/08/13 15:46]
Michael
litespeed_wiki:rewrite_logs [2013/08/13 15:48] (current)
Michael [For Installations Using Apache Configuration Files]
Line 25: Line 25:
 If your installation of LSWS is using Apache'​s configuration files, you will need to enable rewrite logging in your Apache configurations. 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 occurringIf you are using cPanel, everything ​is usually ​in your ''​httpd.conf''​ file. Other setups may have virtual hosts in separate directories.+First, you will need to designate a file for the rewrite logThis is done at the server level (in Apache'​s ​''​httpd.conf''​ file) with the RewriteLog directiveFor example:
  
-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 ​loggingFor example:+  RewriteLog "/​usr/​local/​var/​apache/​logs/rewrite.log"
  
-  RewriteLogLevel 2+You need to locate the virtual host where the error is occurring so you can set the rewrite log level for that virtual host. If you are using cPanel, everything is usually in your ''​httpd.conf''​ file. Other setups may have virtual hosts in separate directories.
  
-You will also need to designate ​file for the rewrite logThis is done at the server level with the RewriteLog directive. For example:+In your virtual host settings, add the RewriteLogLevel directive followed by 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:
  
-  ​RewriteLog "/​usr/​local/​var/​apache/​logs/​rewrite.log"​+  ​RewriteLogLevel 2
  
 Graceful restart LSWS so the changes will take effect. 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]].
 
litespeed_wiki/rewrite_logs.txt ยท Last modified: 2013/08/13 15:48 by Michael