This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Paul's Time Sink

| Main | Albums |

« | »

Found memory leak

Paul Westbrook | 22 November, 2005 07:02

I think that I have found the problem that I was having where it appeared that apache was leaking.

I had some mod_rewrite rules that forward request from where this blog was hosted to the new domain name.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/blog$ http://www.paulstimesink.com/ [L,R]
RewriteRule ^/blog/(.*) http://www.paulstimesink.com/$1 [L,R]
</Ifmodule>

I changed this to:

Alias /blog /<path_to_LifeType>

When people browse the old url, the url that they will see in their browser will be the old one, but I think that is reasonable.

The reason that I think that this is the problem is that when using redirects for two hosts on the same machine, this causes double of the connections open at the same time. The first will be the original connection. Then the redirect, will cause the browser to open a second connection. Most browser should close the previous connection before opening the next, but some browsers may not do this.

[Reply]

Strange as I would have thought those Rewrite Rules would have been well tested by now. How long have you been running with that change for?

Alistair Phillips | 22/11/2005, 17:28

Add comment

Topic

Text

Your name

Your email address

Your personal page (if any)




Powered by LifeType
Design by Book of Styles