[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache rewrite module From Static to Dynamic



On 02/20/2011 10:22 PM, David Christensen wrote:
2. The rewrite log is empty and owned by root:

$ ll apache-sandbox/log/rewrite.log -rw-r--r-- 1 root root 0 Feb 20
21:57 apache-sandbox/log/rewrite.log

Here's part of the solution to #2 -- I needed to set RewriteLogLevel to something greater than zero:

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteloglevel

$ cat /etc/apache2/sites-enabled/apache-sandbox-p43400e.holgerdanske.com
<VirtualHost *:80>
    ServerName   apache-sandbox-p43400e.holgerdanske.com
    DocumentRoot           /home/dpchrist/apache-sandbox/public_html
    RewriteLog             /home/dpchrist/apache-sandbox/log/rewrite.log
    RewriteLogLevel 3
    ScriptAlias  /cgi-bin/ /home/dpchrist/apache-sandbox/cgi-bin/
</VirtualHost>


But, the log is still owned by root:

$ ll apache-sandbox/log/rewrite.log
-rw-r--r-- 1 root root 2082 Feb 20 22:27 apache-sandbox/log/rewrite.log


David


Reply to: