Execute php script outside of document root? - mod-rewrite

I have the following directory structure:
/htdocs
├──test
│ └──.htaccess
└──myphp.php
/htdocs is root for https://example.com and /htdocs/test is root for http://test.example.com
My goal is to execute myphp.php script and pass filename as argument when client requests ./images/* i.e. https://example.com/test/images/blah.png or http://test.example.com/images/blah.png
For this I'm using mod-rewrite in Apache2.4, I have the following in .htaccess:
RewriteEngine On
RewriteRule ^(images/.*)$ ../myphp.php?$1 [L]
This works great with http://example.com/test/images/blah.png, however I'm getting error 400 (bad request) with http://test.example.com/images/blah.png
[2022-05-28 14:36:10] [authz_core:debug] [pid 26880:tid 1888] mod_authz_core.c(815): [client 127.0.0.1:9862] AH01626: authorization result of Require all granted: granted
[2022-05-28 14:36:10] [authz_core:debug] [pid 26880:tid 1888] mod_authz_core.c(815): [client 127.0.0.1:9862] AH01626: authorization result of <RequireAny>: granted
[2022-05-28 14:36:10] [core:error] [pid 26880:tid 1888] [client 127.0.0.1:9862] AH00126: Invalid URI in request 'myfile.php' 'GET /images/blah.png HTTP/1.1'
[2022-05-28 14:36:10] [authz_core:debug] [pid 26880:tid 1896] mod_authz_core.c(815): [client 127.0.0.1:9863] AH01626: authorization result of Require all granted: granted, referer http://test.example.com/images/blah.png
[2022-05-28 14:36:10] [authz_core:debug] [pid 26880:tid 1896] mod_authz_core.c(815): [client 127.0.0.1:9863] AH01626: authorization result of <RequireAny>: granted, referer http://test.example.com/images/blah.png
If I try absolute path in .htaccess:
RewriteRule ^(images/.*)$ /htdocs/myphp.php?$1 [L]
I get error 403 (forbidden):
[2022-05-28 14:39:02] [authz_core:debug] [pid 26880:tid 1908] mod_authz_core.c(815): [client 127.0.0.1:2752] AH01626: authorization result of Require all granted: granted
[2022-05-28 14:39:02] [authz_core:debug] [pid 26880:tid 1908] mod_authz_core.c(815): [client 127.0.0.1:2752] AH01626: authorization result of <RequireAny>: granted
[2022-05-28 14:39:02] [core:error] [pid 26880:tid 1908] (20023)The given path was above the root path: [client 127.0.0.1:2752] AH00127: Cannot map GET /images/blah.png HTTP/1.1 to file
[2022-05-28 14:39:02] [authz_core:debug] [pid 26880:tid 1908] mod_authz_core.c(815): [client 127.0.0.1:2752] AH01626: authorization result of Require all granted: granted, referer http://test.example.com/images/blah.png
[2022-05-28 14:39:02] [authz_core:debug] [pid 26880:tid 1908] mod_authz_core.c(815): [client 127.0.0.1:2752] AH01626: authorization result of <RequireAny>: granted, referer http://test.example.com/images/blah.png
Any suggestions how to make this work if possible without hard-coding domain names?

Related

Debugging Apache2 RewriteRule (with headers)?

So, I've seen Tips for debugging .htaccess rewrite rules - but I have a hard time making use of the suggestions there.
Basically, what I would wish for, is to see what the input and output is of every RewriteCond and RewriteRule entry, as well as the order in which they run, but I cannot seem to find anything that will help me understand that.
So here is a brief example, from what I've read so far: I'm running Apache2 locally on my Windows 10 machine; and I have the following in httpd.conf:
<Location /subfold/dl>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/subfold/dl/
RewriteRule ^subfold/dl/(.*)/(.*)$ httpdocs__$1__$2 [ENV=RSLT:AAA,NE]
SetEnvIf Request_URI "^/subfold/dl/" REWRGO=Yes
# "without 'always' your additions will only go out on succesful responses"
Header always set X-REWRGO "%{REWRGO}e"
Header always set X-RSLT "%{RSLT}e"
</Location>
So, here I basically create a wrong rewrite rule, which means the server will always respond with 404.
Because of that, I have to use the always keyword with Header - otherwise response headers never get sent (see Apache: difference between "Header always set" and "Header set"?).
Eventually, what I'd want, is to capture [ENV=RSLT:httpdocs__$1__$2,NE] the output of the rewrite rule in an environment variable, and then write that variable in the response header. Unfortunately, that does not quite work - when I try to issue a request with curl:
$ curl -IkL http://127.0.0.1/subfold/dl/my/test.html
HTTP/1.1 404 Not Found
Date: Mon, 18 Oct 2021 10:29:12 GMT
Server: Apache/2.4.46 (Win32) OpenSSL/1.1.1j
X-REWRGO: Yes
X-RSLT: (null)
Content-Type: text/html; charset=iso-8859-1
... we can see that the REWRGO variable value did end up in the header - but the RSLT is seen as having value null, even if it was explicitly set to value AAA; furthermore, my log settings:
LogLevel notice setenvif:trace8 rewrite:trace8
... print this in Apache2's error.log:
[Mon Oct 18 12:29:12.151566 2021] [rewrite:trace2] [pid 11368:tid 1932] mod_rewrite.c(483): [client 127.0.0.1:9848] 127.0.0.1 - - [127.0.0.1/sid#14c6370][rid#7031e10/initial] init rewrite engine with requested uri /subfold/dl/my/test.html
[Mon Oct 18 12:29:12.152573 2021] [rewrite:trace1] [pid 11368:tid 1932] mod_rewrite.c(483): [client 127.0.0.1:9848] 127.0.0.1 - - [127.0.0.1/sid#14c6370][rid#7031e10/initial] pass through /subfold/dl/my/test.html
[Mon Oct 18 12:29:12.152573 2021] [setenvif:trace2] [pid 11368:tid 1932] mod_setenvif.c(630): [client 127.0.0.1:9848] Setting REWRGO
[Mon Oct 18 12:29:12.152573 2021] [rewrite:trace3] [pid 11368:tid 1932] mod_rewrite.c(483): [client 127.0.0.1:9848] 127.0.0.1 - - [127.0.0.1/sid#14c6370][rid#7031e10/initial] [perdir /subfold/dl/] add path info postfix: C:/bin/Apache24/htdocs/subfold -> C:/bin/Apache24/htdocs/subfold/dl/my/test.html
[Mon Oct 18 12:29:12.152573 2021] [rewrite:trace3] [pid 11368:tid 1932] mod_rewrite.c(483): [client 127.0.0.1:9848] 127.0.0.1 - - [127.0.0.1/sid#14c6370][rid#7031e10/initial] [perdir /subfold/dl/] applying pattern '^subfold/dl/(.*)/(.*)$' to uri 'C:/bin/Apache24/htdocs/subfold/dl/my/test.html'
[Mon Oct 18 12:29:12.153551 2021] [rewrite:trace1] [pid 11368:tid 1932] mod_rewrite.c(483): [client 127.0.0.1:9848] 127.0.0.1 - - [127.0.0.1/sid#14c6370][rid#7031e10/initial] [perdir /subfold/dl/] pass through C:/bin/Apache24/htdocs/subfold
So, I have everything in this log, except what I need - and that is: what was the final URL string that came out of the RewriteRule (wrong or not)?
But, regardless - the error log shows me, at least, that the RewriteRule has been triggered, and that would make me expect that the RSLT environment variable should be set too; but it is not - as we can see in the header, it is null. So cannot really use this technique for debugging, either.
(I guess, this environment variable problem is due to, as noted in RewriteCond with SetEnv , which quotes Setting Environment Variables:
The SetEnv directive runs late during request processing meaning that directives
such as SetEnvIf and RewriteCond will not see the variables set with it.
But then, the same post says setting an environment variable within the RewriteRule should work - and yet, in my example, it does not?)
Can anyone help me with, how can I correctly capture the output of a RewriteRule, and then print it somehow - for instance, as a header value - for each request URL that I might send through, say, curl?
Ok, managed to get a bit further with this.
First, let's consider this httpd.conf snippet:
<Location /subfold/dl>
RewriteEngine On
RewriteOptions AllowAnyURI
RewriteCond %{REQUEST_URI} ^/subfold/dl/
#RewriteRule subfold/dl/(.*)/(.*)$ httpdocs__$1__$2
RewriteRule (.*) - [E=RSLT:$1,CO=;frontdoor;yes_"$1";127.0.0.1;1440;/,NE,PT,L]
SetEnvIf Request_URI "^/subfold/dl/" REWRGO=Yes
# "without 'always' your additions will only go out on succesful responses"
SetEnvIf Cookie "frontdoor=([^;]+)" MyFrontDoor=%1
Header always set X-REWRGO "%{REWRGO}e"
Header always set X-RSLT "%{RSLT}e"
Header always set X-FRONTDOOR "%{MyFrontDoor}e"
Header always set X-Request_URI1 "%{REQUEST_URI}e"
Header always set X-Request_URI2 "expr=%{REQUEST_URI}"
</Location>
When I have this in my httpd.conf, and I start Apache httpd.exe, and I issue a request, this is what I get now:
$ curl -IkL http://127.0.0.1/subfold/dl/my/test.html
HTTP/1.1 404 Not Found
Date: Mon, 18 Oct 2021 12:35:36 GMT
Server: Apache/2.4.46 (Win32) OpenSSL/1.1.1j
X-REWRGO: Yes
X-RSLT: C:/bin/Apache24/htdocs/subfold/dl/my/test.html
X-FRONTDOOR: (null)
X-Request_URI1: (null)
X-Request_URI2: /subfold/dl/my/test.html
Set-Cookie: frontdoor=yes_"C:/bin/Apache24/htdocs/subfold/dl/my/test.html"; path=/; domain=127.0.0.1; expires=Tue, 19-Oct-2021 12:35:36 GMT
Content-Type: text/html; charset=iso-8859-1
So, something started working ... and what I gather from this:
First, the AllowAnyURI is not really needed here - I thought it was because https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html says:
When RewriteRule is used in VirtualHost or server context with version 2.2.22 or later of httpd, mod_rewrite will only process the rewrite rules if the request URI is a URL-path.
I was afraid that my request URI might not be recognized, so I enabled AllowAnyURI - but that does not seem to be the issue here.
So here is what this tests: with RewriteRule (.*) - we basically have a "passthrough" - the original request does not get rewritten; again https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html :
The Substitution may be a: ...
- (dash)
A dash indicates that no substitution should be performed (the existing path is passed through untouched). This is used when a flag (see below) needs to be applied without changing the path.
... and we also have the corresponding [PT] flag there. Then, since the entire match request is in parentheses (.*) and therefore captured, we can output it with $1 in the same line; and finally, we both set an environment variable RSLT to this, as well as a cookie.
Now here is where I got surprised: what ends up in the "Pattern" part of the rewrite rule is not the original URL - it is what Apache would see as the translation of this URL to the local filesystem!!!
I first noticed this, when I got split values for the cookie, as it always splits on colons (:) - even if it is string data in a variable (which however did contain C:/.., which is what end up being split)! Hence I tried to use double quotes, but that did not work - what worked eventually was https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_co :
If a literal ':' character is needed in any of the cookie fields, an alternate syntax is available. To opt-in to the alternate syntax, the cookie "Name" should be preceded with a ';' character, and field separators should be specified as ';'.
In any case, here we've had:
http://127.0.0.1 /subfold/dl/my/test.html - original request
C:/bin/Apache24/htdocs /subfold/dl/my/test.html - what Apache mapped that request to, in the local filesystem
And essentially, this was the problem with the code in the OP: RewriteRule ^subfold/dl/(.*)/(.*)$ ... would mean: replace the string that starts with subfold... - however, the string ``C:/bin/...` definitely does not start like that, and so the RewriteRule never matches, and does not execute!
I guess, another confusion for me was, that (.*) as the Pattern (first arg) in RewriteRule, typically looks like the REQUEST_URI - but that is within .htaccess in a directory; https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html again:
In VirtualHost context, The Pattern will initially be matched against the part of the URL after the hostname and port, and before the query string (e.g. "/app1/index.html"). This is the (%-decoded) URL-path.
In per-directory context (Directory and .htaccess), the Pattern is matched against only a partial path, for example a request of "/app1/index.html" may result in comparison against "app1/index.html" or "index.html" depending on where the RewriteRule is defined.
... where
REQUEST_URI
The path component of the requested URI, such as "/index.html". This notably excludes the query string which is available as its own variable named QUERY_STRING
So, my bad was, that I was assuming (.*) as Pattern in the RewriteRule would be matched to the path component (REQUEST_URI-like) and I attempted matching versus that; whereas, in this case, it was actually the full filesystem path, starting with C:/...!
The being said, we can now uncomment the line RewriteRule subfold/dl/(.*)/(.*)$ httpdocs__$1__$2 in the above snippet - realising that this time, the match does not have the starting caret (^), which would means "match the start of string":
<Location /subfold/dl>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/subfold/dl/
RewriteRule subfold/dl/(.*)/(.*)$ httpdocs__$1__$2
RewriteRule (.*) - [E=RSLT:$1,CO=;frontdoor;yes_"$1";127.0.0.1;1440;/,NE,PT,L]
SetEnvIf Request_URI "^/subfold/dl/" REWRGO=Yes
# "without 'always' your additions will only go out on succesful responses"
SetEnvIf Cookie "frontdoor=([^;]+)" MyFrontDoor=%1
Header always set X-REWRGO "%{REWRGO}e"
Header always set X-RSLT "%{RSLT}e"
Header always set X-FRONTDOOR "%{MyFrontDoor}e"
Header always set X-Request_URI1 "%{REQUEST_URI}e"
Header always set X-Request_URI2 "expr=%{REQUEST_URI}"
</Location>
... and the response to this is:
$ curl -IkL http://127.0.0.1/subfold/dl/my/test.html
HTTP/1.1 404 Not Found
Date: Mon, 18 Oct 2021 13:18:33 GMT
Server: Apache/2.4.46 (Win32) OpenSSL/1.1.1j
X-REWRGO: Yes
X-RSLT: C:/bin/Apache24/htdocs/subfold/dl/httpdocs__my__test.html
X-FRONTDOOR: (null)
X-Request_URI1: (null)
X-Request_URI2: /subfold/dl/httpdocs__my__test.html
Set-Cookie: frontdoor=yes_"httpdocs__my__test.html/dl/my/test.html"; path=/; domain=127.0.0.1; expires=Tue, 19-Oct-2021 13:18:33 GMT
Content-Type: text/html; charset=iso-8859-1
So, yeah - finally I can see the expected mod_rewrite string substitution/replacement in headers, even if the rewritten URI is incorrect (i.e. does not correctly map to existing local filesystem data) -- which is what I wanted to achieve.
For fun, this is what comes out of the Apache error (that is, mod_rewrite) log:
[Mon Oct 18 15:21:55.007369 2021] [rewrite:trace2] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] init rewrite engine with requested uri /subfold/dl/my/test.html
[Mon Oct 18 15:21:55.007369 2021] [rewrite:trace1] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] pass through /subfold/dl/my/test.html
[Mon Oct 18 15:21:55.008369 2021] [setenvif:trace2] [pid 15508:tid 1936] mod_setenvif.c(630): [client 127.0.0.1:12206] Setting REWRGO
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] add path info postfix: C:/bin/Apache24/htdocs/subfold -> C:/bin/Apache24/htdocs/subfold/dl/my/test.html
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] applying pattern 'subfold/dl/(.*)/(.*)$' to uri 'C:/bin/Apache24/htdocs/subfold/dl/my/test.html'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace4] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] RewriteCond: input='/subfold/dl/my/test.html' pattern='^/subfold/dl/' => matched
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace2] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] rewrite 'C:/bin/Apache24/htdocs/subfold/dl/my/test.html' -> 'httpdocs__my__test.html'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] add per-dir prefix: httpdocs__my__test.html -> /subfold/dl/httpdocs__my__test.html
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] add path info postfix: /subfold/dl/httpdocs__my__test.html -> /subfold/dl/httpdocs__my__test.html/dl/my/test.html
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] strip per-dir prefix: /subfold/dl/httpdocs__my__test.html/dl/my/test.html -> httpdocs__my__test.html/dl/my/test.html
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] applying pattern '(.*)' to uri 'httpdocs__my__test.html/dl/my/test.html'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace5] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] setting env variable 'RSLT' to 'httpdocs__my__test.html/dl/my/test.html'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace5] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] setting cookie 'frontdoor=yes_"httpdocs__my__test.html/dl/my/test.html"; path=/; domain=127.0.0.1; expires=Tue, 19-Oct-2021 13:21:55 GMT'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace2] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] forcing '/subfold/dl/httpdocs__my__test.html' to get passed through to next API URI-to-filename handler
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace2] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] trying to replace context docroot C:/bin/Apache24/htdocs with context prefix
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace1] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b22d90/initial] [perdir /subfold/dl/] internal redirect with /subfold/dl/httpdocs__my__test.html [INTERNAL REDIRECT]
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace2] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] init rewrite engine with requested uri /subfold/dl/httpdocs__my__test.html
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace1] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] pass through /subfold/dl/httpdocs__my__test.html
[Mon Oct 18 15:21:55.008369 2021] [setenvif:trace2] [pid 15508:tid 1936] mod_setenvif.c(630): [client 127.0.0.1:12206] Setting REWRGO
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] [perdir /subfold/dl/] add path info postfix: C:/bin/Apache24/htdocs/subfold -> C:/bin/Apache24/htdocs/subfold/dl/httpdocs__my__test.html
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] [perdir /subfold/dl/] applying pattern 'subfold/dl/(.*)/(.*)$' to uri 'C:/bin/Apache24/htdocs/subfold/dl/httpdocs__my__test.html'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] [perdir /subfold/dl/] add path info postfix: C:/bin/Apache24/htdocs/subfold -> C:/bin/Apache24/htdocs/subfold/dl/httpdocs__my__test.html
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace3] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] [perdir /subfold/dl/] applying pattern '(.*)' to uri 'C:/bin/Apache24/htdocs/subfold/dl/httpdocs__my__test.html'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace5] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] setting env variable 'RSLT' to 'C:/bin/Apache24/htdocs/subfold/dl/httpdocs__my__test.html'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace5] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] skipping already set cookie 'frontdoor'
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace2] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] [perdir /subfold/dl/] forcing 'C:/bin/Apache24/htdocs/subfold' to get passed through to next API URI-to-filename handler
[Mon Oct 18 15:21:55.008369 2021] [rewrite:trace1] [pid 15508:tid 1936] mod_rewrite.c(483): [client 127.0.0.1:12206] 127.0.0.1 - - [127.0.0.1/sid#f88ee0][rid#6b1a020/initial/redir#1] [perdir /subfold/dl/] initial URL equal rewritten URL: C:/bin/Apache24/htdocs/subfold [IGNORING REWRITE]
Finally, note:
Now that our RewriteRule does not insist on ^start of string, the cookie value does not contain the starting part of the absolute path as before
However, we still have the absolute local (C:/...) path for RSLT - and that persist, even if we add [P] (for proxy) or [R=302] (for redirect) flags to the RewriteRule (there will be no change in behavior, since the page regardless returns 404)
For some reason, SetEnvIf Cookie doesn't match the cookie, even if the cookie get written out
Even if %{REQUEST_URI} definitely exists, it does not get output in header via the "%{REQUEST_URI}e" syntax - it only gets output via the "expr=%{REQUEST_URI}" syntax, which I guess is an ap_expr

magento upgradation -1.4 to 1.8

I tried upgrading where I successfully upgraded to 1.4.2 from 1.4.1
but the frontend stopped working. Also, phpmyadmin completely stopped.
Below is my error log in /opt/lamp/logs.
Does anyone know where exactly to look for what's causing the error in this big log?
[Fri Jan 24 17:16:44.072704 2014] [ssl:warn] [pid 1180] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 17:16:44.072796 2014] [ssl:warn] [pid 1180] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 17:16:44.072825 2014] [suexec:notice] [pid 1180] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Fri Jan 24 17:16:44.218834 2014] [auth_digest:notice] [pid 1335] AH01757: generating secret for digest authentication ...
[Fri Jan 24 17:16:45.030837 2014] [ssl:warn] [pid 1335] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 17:16:45.030929 2014] [ssl:warn] [pid 1335] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 17:16:45.030997 2014] [lbmethod_heartbeat:notice] [pid 1335] AH02282: No slotmem from mod_heartmonitor
[Fri Jan 24 17:16:45.039496 2014] [mpm_prefork:notice] [pid 1335] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Fri Jan 24 17:16:45.039531 2014] [core:notice] [pid 1335] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -D PHP5 -E /opt/lampp/logs/error_log'
[Fri Jan 24 17:17:41.073939 2014] [authz_core:error] [pid 1890] [client 127.0.0.1:56956] AH01630: client denied by server configuration: /opt/lampp/phpmyadmin/
[Fri Jan 24 17:17:50.020021 2014] [authz_core:error] [pid 1891] [client 127.0.0.1:56983] AH01630: client denied by server configuration: /opt/lampp/phpmyadmin/
[Fri Jan 24 17:17:51.154603 2014] [authz_core:error] [pid 1891] [client 127.0.0.1:56983] AH01630: client denied by server configuration: /opt/lampp/phpmyadmin/
[Fri Jan 24 17:17:51.602371 2014] [authz_core:error] [pid 1891] [client 127.0.0.1:56983] AH01630: client denied by server configuration: /opt/lampp/phpmyadmin/
[Fri Jan 24 17:17:51.901841 2014] [authz_core:error] [pid 1891] [client 127.0.0.1:56983] AH01630: client denied by server configuration: /opt/lampp/phpmyadmin/
[Fri Jan 24 17:20:01.327548 2014] [authz_core:error] [pid 1892] [client 127.0.0.1:56987] AH01630: client denied by server configuration: /opt/lampp/phpmyadmin/
[Fri Jan 24 17:20:02.489854 2014] [authz_core:error] [pid 1892] [client 127.0.0.1:56987] AH01630: client denied by server configuration: /opt/lampp/phpmyadmin/
[Fri Jan 24 17:20:42.243495 2014] [mpm_prefork:notice] [pid 1335] AH00169: caught SIGTERM, shutting down
[Fri Jan 24 17:20:51.085988 2014] [ssl:warn] [pid 2967] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 17:20:51.086085 2014] [ssl:warn] [pid 2967] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 17:20:51.086113 2014] [suexec:notice] [pid 2967] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Fri Jan 24 17:20:51.216881 2014] [auth_digest:notice] [pid 2968] AH01757: generating secret for digest authentication ...
[Fri Jan 24 17:20:52.074917 2014] [ssl:warn] [pid 2968] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 17:20:52.074967 2014] [ssl:warn] [pid 2968] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 17:20:52.075005 2014] [lbmethod_heartbeat:notice] [pid 2968] AH02282: No slotmem from mod_heartmonitor
[Fri Jan 24 17:20:52.081177 2014] [mpm_prefork:notice] [pid 2968] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Fri Jan 24 17:20:52.081213 2014] [core:notice] [pid 2968] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -D PHP5 -E /opt/lampp/logs/error_log'
[Fri Jan 24 17:40:47.075100 2014] [ssl:warn] [pid 1188] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 17:40:47.086940 2014] [ssl:warn] [pid 1188] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 17:40:47.086998 2014] [suexec:notice] [pid 1188] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Fri Jan 24 17:40:47.242800 2014] [auth_digest:notice] [pid 1502] AH01757: generating secret for digest authentication ...
[Fri Jan 24 17:40:48.050110 2014] [ssl:warn] [pid 1502] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 17:40:48.050170 2014] [ssl:warn] [pid 1502] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 17:40:48.050214 2014] [lbmethod_heartbeat:notice] [pid 1502] AH02282: No slotmem from mod_heartmonitor
[Fri Jan 24 17:40:48.055872 2014] [mpm_prefork:notice] [pid 1502] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Fri Jan 24 17:40:48.055913 2014] [core:notice] [pid 1502] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -D PHP5 -E /opt/lampp/logs/error_log'
[Fri Jan 24 17:50:03.664870 2014] [access_compat:error] [pid 2506] [client 127.0.0.1:44824] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 17:58:43.173383 2014] [access_compat:error] [pid 2512] [client 127.0.0.1:44945] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:02:47.290956 2014] [core:notice] [pid 1502] AH00051: child pid 2915 exit signal Segmentation fault (11), possible coredump in /opt/lampp
[Fri Jan 24 18:05:48.701079 2014] [:error] [pid 2506] [client 127.0.0.1:45082] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:05:59.281046 2014] [:error] [pid 2932] [client 127.0.0.1:45083] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:06:18.870329 2014] [access_compat:error] [pid 2001] [client 127.0.0.1:45088] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:09:28.481096 2014] [:error] [pid 2001] [client 127.0.0.1:45098] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:10:05.300624 2014] [:error] [pid 2946] [client 127.0.0.1:45114] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:10:05.691793 2014] [core:notice] [pid 1502] AH00051: child pid 3781 exit signal Segmentation fault (11), possible coredump in /opt/lampp
[Fri Jan 24 18:10:12.901312 2014] [access_compat:error] [pid 1998] [client 127.0.0.1:45116] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:10:19.200353 2014] [access_compat:error] [pid 2510] [client 127.0.0.1:45122] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:21:01.813878 2014] [:error] [pid 2494] [client 127.0.0.1:45350] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:21:03.603027 2014] [:error] [pid 2494] [client 127.0.0.1:45350] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:21:04.886698 2014] [:error] [pid 2494] [client 127.0.0.1:45350] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:21:05.105651 2014] [:error] [pid 2494] [client 127.0.0.1:45350] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:21:05.278352 2014] [:error] [pid 1998] [client 127.0.0.1:45351] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:22:00.454583 2014] [:error] [pid 2946] [client 127.0.0.1:45403] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:22:57.866575 2014] [:error] [pid 3752] [client 127.0.0.1:45434] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:22:58.061249 2014] [:error] [pid 3752] [client 127.0.0.1:45434] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:23:24.403970 2014] [access_compat:error] [pid 2001] [client 127.0.0.1:45443] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:23:47.017177 2014] [access_compat:error] [pid 3754] [client 127.0.0.1:45452] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:23:53.612522 2014] [access_compat:error] [pid 2946] [client 127.0.0.1:45463] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:23:56.602871 2014] [access_compat:error] [pid 2001] [client 127.0.0.1:45466] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:24:02.936633 2014] [access_compat:error] [pid 2510] [client 127.0.0.1:45472] AH01797: client denied by server configuration: /opt/lampp/htdocs/pedicure/app/etc/local.xml
[Fri Jan 24 18:27:07.836253 2014] [:error] [pid 3753] [client 127.0.0.1:45605] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:27:09.725328 2014] [:error] [pid 3753] [client 127.0.0.1:45605] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:27:11.510547 2014] [:error] [pid 3753] [client 127.0.0.1:45605] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:27:13.086073 2014] [:error] [pid 3753] [client 127.0.0.1:45605] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:27:13.252462 2014] [:error] [pid 2506] [client 127.0.0.1:45606] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:27:13.403045 2014] [:error] [pid 2494] [client 127.0.0.1:45607] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:27:13.503701 2014] [:error] [pid 2946] [client 127.0.0.1:45608] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:29:54.146949 2014] [:error] [pid 2510] [client 127.0.0.1:45873] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:30:39.799300 2014] [:error] [pid 3753] [client 127.0.0.1:45991] PHP Fatal error: Call to a member function toHtml() on a non-object in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Layout.php on line 529
[Fri Jan 24 18:30:39.897294 2014] [:error] [pid 3753] [client 127.0.0.1:45991] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /opt/lampp/htdocs/pedicure/lib/Zend/Db/Statement/Pdo.php:228\nStack trace:\n#0 /opt/lampp/htdocs/pedicure/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)\n#1 /opt/lampp/htdocs/pedicure/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)\n#2 /opt/lampp/htdocs/pedicure/lib/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array)\n#3 /opt/lampp/htdocs/pedicure/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('UPDATE `core_se...', Array)\n#4 /opt/lampp/htdocs/pedicure/lib/Varien/Db/Adapter/Pdo/Mysql.php(333): Zend_Db_Adapter_Pdo_Abstract->query('UPDATE `core_se...', Array)\n#5 /opt/lampp/htdocs/pedicure/lib/Zend/Db/Adapter/Abstract.php(604): Varien_Db_Adapter_Pdo_Mysql->query('UPDATE `core_se...', Array)\n#6 /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/Model/Mysql4/Session.php(199): Zend_Db_Adapter_Abstract->update('core_session in /opt/lampp/htdocs/pedicure/lib/Zend/Db/Statement/Pdo.php on line 234
[Fri Jan 24 18:40:57.681009 2014] [:error] [pid 2494] [client 127.0.0.1:46634] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:40:57.681057 2014] [:error] [pid 2494] [client 127.0.0.1:46634] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:40:57.681071 2014] [:error] [pid 2494] [client 127.0.0.1:46634] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:02.823272 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:02.823324 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:02.823339 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:06.232257 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:06.232316 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:06.232331 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:08.058339 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:08.058388 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:08.058411 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:10.021820 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:10.021866 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:10.021880 2014] [:error] [pid 2510] [client 127.0.0.1:46643] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:18.703821 2014] [:error] [pid 2506] [client 127.0.0.1:46684] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:18.703868 2014] [:error] [pid 2506] [client 127.0.0.1:46684] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:18.703882 2014] [:error] [pid 2506] [client 127.0.0.1:46684] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:41.511820 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:41.511972 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:41.511997 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:43.294737 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:43.294842 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:43.294862 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:41:44.154850 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:44.154905 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:41:44.154928 2014] [:error] [pid 4590] [client 127.0.0.1:46704] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:43:34.357140 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:43:34.357197 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:43:34.357211 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:43:35.823166 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:43:35.823211 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:43:35.823225 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
[Fri Jan 24 18:43:40.071212 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Warning: include(Zend/Log.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:43:40.071260 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Warning: include(): Failed opening 'Zend/Log.php' for inclusion (include_path='/opt/lampp/htdocs/pedicure/app/code/local:/opt/lampp/htdocs/pedicure/app/code/community:/opt/lampp/htdocs/pedicure/app/code/core:/opt/lampp/htdocs/pedicure/lib:.:/opt/lampp/lib/php') in /opt/lampp/htdocs/pedicure/lib/Varien/Autoload.php on line 93
[Fri Jan 24 18:43:40.071273 2014] [:error] [pid 2494] [client 127.0.0.1:46818] PHP Fatal error: Class 'Zend_Log' not found in /opt/lampp/htdocs/pedicure/app/code/core/Mage/Core/functions.php on line 247
*** glibc detected *** /opt/lampp/bin/httpd: double free or corruption (!prev): 0x08332630 ***
[Fri Jan 24 18:45:26.599938 2014] [core:notice] [pid 1502] AH00051: child pid 4245 exit signal Aborted (6), possible coredump in /opt/lampp
[Fri Jan 24 18:45:26.600073 2014] [mpm_prefork:notice] [pid 1502] AH00169: caught SIGTERM, shutting down
[Fri Jan 24 18:45:33.065084 2014] [ssl:warn] [pid 4991] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 18:45:33.065195 2014] [ssl:warn] [pid 4991] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 18:45:33.065229 2014] [suexec:notice] [pid 4991] AH01232: suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
[Fri Jan 24 18:45:33.199857 2014] [auth_digest:notice] [pid 4992] AH01757: generating secret for digest authentication ...
[Fri Jan 24 18:45:34.051094 2014] [ssl:warn] [pid 4992] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jan 24 18:45:34.051151 2014] [ssl:warn] [pid 4992] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Fri Jan 24 18:45:34.051205 2014] [lbmethod_heartbeat:notice] [pid 4992] AH02282: No slotmem from mod_heartmonitor
[Fri Jan 24 18:45:34.058057 2014] [mpm_prefork:notice] [pid 4992] AH00163: Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Fri Jan 24 18:45:34.058118 2014] [core:notice] [pid 4992] AH00094: Command line: '/opt/lampp/bin/httpd -D SSL -D PHP5 -E /opt/lampp/logs/error_log'
first of all, there is a mysql error, server has gone away... you should first check, if the webserver can access the db server.
second thing is when you perform an update, especially a majorversion upgrade, make sure that you switch your themes and packages back to the default magento ones, as layoutchanges can cause strange error messages or blank pages. hopefully this was not done on a productive website ;)
Then I would clear the whole cache. If you do not have access to backend, simply remove any files and folders below /docroot/var/cache/ and reload the page after clearing browsercache as well.
If that did not help see if there any frontend errors displayed. If not and only a blank page is displayed or just parts of page with the rest of it blank, it is very hekpful to enable error reporting on frontend in php and magento.
Then you should always take a look on your magentolog found in /docroot/var/log... especially exception.log and system.log can contain a bunch of helpful things...
If you need more help, send over some more info.
Cheers
Ben

File path incorrect after moving Magento

Tried migrating a magento install from one domain/server to another. Now when I view the site on the test install it only partially loads (missing product images and footer) and when I view the error logs it looks like it is adding a /var/www/vhosts/.... to some filepaths so it seems like they dont exist.
I cannot seem to find this filepath anywhere and dont know where I should change it. Any help would be appreciated.
Here is my error log:
[Thu Jan 16 20:22:19 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Thu Jan 16 20:22:19 2014] [warn] RSA server certificate CommonName (CN) `Parallels Panel' does NOT match server name!?
[Fri Jan 17 01:08:23 2014] [error] [client 5.5.5.5] File does not exist: /var/www/vhosts/live-website.com/httpdocs/HNAP1, referer: http://500.500.500.500/
[Fri Jan 17 01:18:15 2014] [error] [client 0.0.0.0] File does not exist: /var/www/vhosts/live-website.com/httpdocs/HNAP1, referer: http://500.500.500.500/
[Fri Jan 17 07:11:10 2014] [error] [client 10.10.10.10] File does not exist: /var/www/vhosts/live-website.com/httpdocs/HNAP1, referer: http://500.500.500.500/
[Fri Jan 17 08:37:34 2014] [error] [client 250.250.250.250] File does not exist: /var/www/vhosts/live-website.com/httpdocs/HNAP1, referer: http://500.500.500.500/
[Fri Jan 17 16:46:12 2014] [error] [client 75.75.75.75] File does not exist: /var/www/vhosts/live-website.com/httpdocs/HNAP1, referer: http://500.500.500.500/
[Fri Jan 17 17:28:40 2014] [error] [client 1.1.1.1] script not found or unable to stat: /var/www/cgi-bin/cgi_wrapper/php
[Fri Jan 17 17:28:56 2014] [error] [client 1.1.1.1] script not found or unable to stat: /var/www/cgi-bin/cgi_wrapper/php
[Fri Jan 17 17:43:03 2014] [error] [client 1.1.1.1] script not found or unable to stat: /var/www/cgi-bin/cgi_wrapper/php
[Fri Jan 17 17:45:56 2014] [error] [client 1.1.1.1] script not found or unable to stat: /var/www/cgi-bin/cgi_wrapper/php
[Fri Jan 17 21:14:57 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:14:57 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:14:57 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:15:03 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/inspiration, referer: http://test.test-site.com/
[Fri Jan 17 21:15:06 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:15:06 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:15:06 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:16:30 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:16:30 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:16:30 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:16:35 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/admin
[Fri Jan 17 21:16:36 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/admin
[Fri Jan 17 21:16:37 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/admin
[Fri Jan 17 21:16:37 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/admin
[Fri Jan 17 21:16:38 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/admin
[Fri Jan 17 21:18:31 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:18:31 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:18:31 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:19:46 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/shop, referer: http://test.test-site.com/
[Fri Jan 17 21:19:47 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/shop, referer: http://test.test-site.com/
[Fri Jan 17 21:19:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:19:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:19:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:20:07 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:20:07 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:20:07 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:20:15 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/lookbook, referer: http://test.test-site.com/
[Fri Jan 17 21:20:19 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:22:33 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/admin
[Fri Jan 17 21:27:00 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:27:00 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:27:00 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:27:27 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:27 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:27 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:27 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:27 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:39 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/shop/fall-2013
[Fri Jan 17 21:27:39 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/shop/fall-2013
[Fri Jan 17 21:27:39 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/shop/fall-2013
[Fri Jan 17 21:27:46 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/shop/fall-2013?p=2
[Fri Jan 17 21:27:46 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/shop/fall-2013?p=2
[Fri Jan 17 21:27:46 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/shop/fall-2013?p=2
[Fri Jan 17 21:27:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:54 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:27:56 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:27:56 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:27:56 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:28:36 2014] [error] [client 7.7.7.7] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/instafeed.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:28:36 2014] [error] [client 7.7.7.7] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/new-window.js, referer: http://test.test-site.com/
[Fri Jan 17 21:28:36 2014] [error] [client 7.7.7.7] File does not exist: /var/www/vhosts/live-website.com/httpdocs/js/jquery.royalslider.min.js, referer: http://test.test-site.com/
[Fri Jan 17 21:32:29 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:32:29 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:32:29 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:32:29 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:46:40 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 21:46:40 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 22:06:02 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/wysiwyg/picwithcorner_copy.jpg, referer: http://test.test-site.com/inspiration
[Fri Jan 17 22:06:04 2014] [error] [client 75.75.75.75] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/wysiwyg/picwithcorner_copy.jpg, referer: http://test.test-site.com/catalog/category/view/id/40/
[Fri Jan 17 22:06:05 2014] [error] [client 15.15.15.15] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/wysiwyg/picwithcorner_copy.jpg
[Fri Jan 17 22:06:11 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 22:06:11 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 22:19:39 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Fri Jan 17 22:19:39 2014] [error] [client 100.100.100.100] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:33:39 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:33:39 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:33:44 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/all
[Sat Jan 18 14:34:29 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:34:29 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:34:47 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/all
[Sat Jan 18 14:35:26 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:35:27 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:35:32 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/fall-2013
[Sat Jan 18 14:36:42 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/chill_blanket.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:36:42 2014] [error] [client 99.99.99.99] File does not exist: /var/www/vhosts/live-website.com/httpdocs/media/catalog/category/heart_image_white_background.jpg, referer: http://test.test-site.com/shop
[Sat Jan 18 14:37:09 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/all
[Sat Jan 18 14:39:06 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/all
[Sat Jan 18 14:39:11 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/all
[Sat Jan 18 14:39:30 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 14:41:38 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 14:42:26 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 14:47:16 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 14:47:51 2014] [warn] [client 85.85.85.85] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0
[Sat Jan 18 14:53:35 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:07:21 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Call to a member function children() on a non-object in /var/www/vhosts/live-website.com/httpdocs/app/code/core/Mage/Core/Model/Config.php on line 946, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:07:23 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Call to a member function children() on a non-object in /var/www/vhosts/live-website.com/httpdocs/app/code/core/Mage/Core/Model/Config.php on line 946, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:07:24 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Call to a member function children() on a non-object in /var/www/vhosts/live-website.com/httpdocs/app/code/core/Mage/Core/Model/Config.php on line 946, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:07:25 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Call to a member function children() on a non-object in /var/www/vhosts/live-website.com/httpdocs/app/code/core/Mage/Core/Model/Config.php on line 946, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:07:26 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Call to a member function children() on a non-object in /var/www/vhosts/live-website.com/httpdocs/app/code/core/Mage/Core/Model/Config.php on line 946, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:09:05 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:09:34 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Class 'Mage_Facebook_Helper_Data' not found in /var/www/vhosts/live-website.com/httpdocs/app/Mage.php on line 546, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:09:41 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Class 'Mage_Facebook_Helper_Data' not found in /var/www/vhosts/live-website.com/httpdocs/app/Mage.php on line 546, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:09:57 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:10:32 2014] [error] [client 500.500.500.500] client denied by server configuration: /var/www/vhosts/live-website.com/httpdocs/app/etc/local.xml
[Sat Jan 18 15:10:45 2014] [error] [client 500.500.500.500] client denied by server configuration: /var/www/vhosts/live-website.com/httpdocs/app/etc/local.xml
[Sat Jan 18 15:11:13 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:12:40 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:14:51 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:15:10 2014] [error] [client 500.500.500.500] client denied by server configuration: /var/www/vhosts/live-website.com/httpdocs/app/etc/local.xml
[Sat Jan 18 15:15:23 2014] [error] [client 500.500.500.500] client denied by server configuration: /var/www/vhosts/live-website.com/httpdocs/app/etc/local.xml
[Sat Jan 18 15:15:29 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:15:38 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:18:00 2014] [warn] [client 85.85.85.85] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0
[Sat Jan 18 15:23:48 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/all
[Sat Jan 18 15:30:58 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Class 'Unleaded_Facebook_Block_Plugin_Widget' not found in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget/Like.php on line 9, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:32:01 2014] [error] [client 500.500.500.500] client denied by server configuration: /var/www/vhosts/live-website.com/httpdocs/app/etc/local.xml
[Sat Jan 18 15:39:20 2014] [warn] [client 99.99.99.99] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0, referer: http://test.test-site.com/shop/cruise-14
[Sat Jan 18 15:51:09 2014] [warn] [client 85.85.85.85] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0
[Sat Jan 18 15:51:35 2014] [warn] [client 85.85.85.85] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0
[Sat Jan 18 15:55:15 2014] [warn] [client 85.85.85.85] mod_fcgid: stderr: PHP Fatal error: Method Unleaded_Facebook_Helper_Data::__toString() must not throw an exception in /var/www/vhosts/live-website.com/httpdocs/app/code/community/Unleaded/Facebook/Block/Plugin/Widget.php on line 0
Try clearing all caches under:
System > Cache Management
and click the Flush Magento Cache button. This helped in my case.

Apache - caching responses from app server

I have an web application server sitting behind Apache 2.4.2 in a reverse proxy configuration. The app server returns a response including the following headers:
Pragma: no-cache
Vary: Accept-Encoding
Cache-Control: no-cache
Expires: Mon, 07 Jan 2013 01:21:30 GMT
I have Apache 2.4.2 working as a reverse proxy in front of this application server and want to cache responses from the application server. I can't modify the application server. How do I do this in Apache? I was hopeful for CacheStoreExpired and CacheIgnoreCacheControl but they don't help here because Apache makes a conditional request to the backend - and the app server always wants to refresh the cache with something new that expires 'now'. I wonder if I can rewrite the headers returned from the application server?
I am using mod_cache (to no avail) with this config:
CacheEnable disk /
CacheRoot "C:/Program Files/Apache Software Foundation/Apache2.4/cache/"
CacheIgnoreCacheControl On
CacheIgnoreNoLastMod On
CacheStoreNoStore On
CacheStoreExpired On
CacheStaleOnError on
LogLevel debug
CacheHeader on
CacheDetailHeader on
CacheDefaultExpire 120
CacheMaxExpire 120
SetEnv proxy-nokeepalive 1
ProxyPass / http://localhost:8080/
Apache's debug log is a bit worrying, too:
[Fri Jan 04 16:27:52.113857 2013] [cache:debug] [pid 2824:tid 964] cache_storage.c(624): [client 192.168.4.36:51783] AH00698: cache: Key for entity /browse?(null) is http://192.168.4.189:80/browse?, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:52.113857 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(159): [client 192.168.4.36:51783] AH00750: Adding CACHE_SAVE filter for /browse, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:52.113857 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(169): [client 192.168.4.36:51783] AH00751: Adding CACHE_REMOVE_URL filter for /browse, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.503049 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(1190): [client 192.168.4.36:51783] AH00769: cache: Caching url: /browse, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.503049 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(1196): [client 192.168.4.36:51783] AH00770: cache: Removing CACHE_REMOVE_URL filter., referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.643529 2013] [cache_disk:debug] [pid 2824:tid 964] mod_cache_disk.c(1318): [client 192.168.4.36:51783] AH00737: commit_entity: Headers and body for URL http://192.168.4.189:80/browse? cached., referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.799618 2013] [cache:debug] [pid 2824:tid 964] cache_storage.c(624): [client 192.168.4.36:51783] AH00698: cache: Key for entity /browse?(null) is http://192.168.4.189:80/browse?, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.799618 2013] [cache_disk:debug] [pid 2824:tid 964] mod_cache_disk.c(569): [client 192.168.4.36:51783] AH00709: Recalled cached URL info header http://192.168.4.189:80/browse?, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.799618 2013] [cache_disk:debug] [pid 2824:tid 964] mod_cache_disk.c(865): [client 192.168.4.36:51783] AH00720: Recalled headers for URL http://192.168.4.189:80/browse?, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.799618 2013] [cache:debug] [pid 2824:tid 964] cache_storage.c(320): [client 192.168.4.36:51783] AH00695: Cached response for /browse isn't fresh. Adding/replacing conditional request headers., referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.799618 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(159): [client 192.168.4.36:51783] AH00750: Adding CACHE_SAVE filter for /browse, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:53.799618 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(169): [client 192.168.4.36:51783] AH00751: Adding CACHE_REMOVE_URL filter for /browse, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:55.235637 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(1190): [client 192.168.4.36:51783] AH00769: cache: Caching url: /browse, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:55.235637 2013] [cache:debug] [pid 2824:tid 964] mod_cache.c(1196): [client 192.168.4.36:51783] AH00770: cache: Removing CACHE_REMOVE_URL filter., referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:55.298072 2013] [cache_disk:warn] [pid 2824:tid 964] (OS 5)Access is denied. : [client 192.168.4.36:51783] AH00699: rename tempfile to file failed: C:/Program Files/Apache Software Foundation/Apache2.4/cache/aptmpcJvfPV -> C:/Program Files/Apache Software Foundation/Apache2.4/cache/A/3/xM0hz_t8XPQaojszgaGA.data, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:55.298072 2013] [cache_disk:debug] [pid 2824:tid 964] mod_cache_disk.c(617): [client 192.168.4.36:51783] AH00711: Deleting C:/Program Files/Apache Software Foundation/Apache2.4/cache/A/3/xM0hz_t8XPQaojszgaGA.header from cache., referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:55.298072 2013] [cache_disk:debug] [pid 2824:tid 964] mod_cache_disk.c(634): [client 192.168.4.36:51783] AH00713: Deleting C:/Program Files/Apache Software Foundation/Apache2.4/cache/A/3/xM0hz_t8XPQaojszgaGA.data from cache., referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:55.298072 2013] [cache_disk:debug] [pid 2824:tid 964] mod_cache_disk.c(674): [client 192.168.4.36:51783] AH00715: Deleting directory C:/Program Files/Apache Software Foundation/Apache2.4/cache/A/3 from cache, referer: http://192.168.4.189/browse
[Fri Jan 04 16:27:55.298072 2013] [cache_disk:debug] [pid 2824:tid 964] mod_cache_disk.c(1313): [client 192.168.4.36:51783] AH00736: commit_entity: URL 'http://192.168.4.189:80/browse?' not cached due to earlier disk error., referer: http://192.168.4.189/browse
You can do this with mod_cache
http://httpd.apache.org/docs/current/mod/mod_cache.html
Please consider also to add:
CacheIgnoreQueryString On
Requests with query string parameters are not cached by default.
Looking at your log, there is an error in the last line: not cached due to earlier disk error.
May be your apache server does not have correct permission to write into cache directory, or your disk is full...
You should double check if the apache memcache directory is correctly created.
You can use CacheIgnoreHeaders to ignore unwanted headers from the backend app server:
http://httpd.apache.org/docs/current/mod/mod_cache.html#cacheignoreheaders
For example:
CacheIgnoreHeaders Set-Cookie Cookie Cookie2 X-Forwarded-For X-Forwarded-Host

.htaccess does many internal loops

#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /refm/
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU
I've been using the same .htaccess code on Ubuntu and it was working fine, now I'm working on a windows machine and it doesn't seem to work, it always loads the homepage when I click on any on the inside pages. Basically, what this .htaccess does is to enable pretty permalinks for Zen Cart pages and products. The .htaccess file is recognized by Apache as I've checked the httpd.conf configurations, I checked error.log and here is the error that I found:
[error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
I've also changed the LogLevel to debug instead of warn to see the details of the error and here is what I got:
[Tue Jun 05 23:31:09 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3065): [client 127.0.0.1] r->uri = /index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/index.php/index.php/index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/index.php/index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /index.php/css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-
type-page-38
[Tue Jun 05 23:31:09 2012] [debug] core.c(3071): [client 127.0.0.1] redirected from r->uri = /css/style.css, referer: http://localhost/refm/refm-excel-products-by-property-type-page-38
So there seems to be some kind of loop. Can you help me figure it out? Thanks!
Try replacing your last rule with this:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [E=VAR1:$1,L]

Resources