Chapter 14. Frequently asked questions

Q: I setup middleman to use an external parser, but it doesn't always work.

A: Check the "Maximum buffer size" setting in the global section of the web interface, the file may be too large.

Q: I keep getting "URL redirection limit exceeded" errors for a page while using the proxy.

A: The default configuration includes a redirect entry which bypasses link tracking scripts by redirecting any request which has a URL within the URL directly to that URL; i.e. requesting "http://www.somesite.com/redirect.pl?http://someothersite.com" will cause the proxy to send back a 302 redirect for "http://someothersite.com". In most cases this works as expected; however, on some sites, such as ones that make you go through a login process and have the URL you originally requested within the URL, this will not work. You can temporarily bypass this by prefixing "bypass[r].." to the URL, or permanently bypass it by adding a redirect entry above the link bypassing one with a URL pattern matching the host and no Redirect field.

Q: Why is there a discrepency between the cache disk usage the proxy reports and what's on the disk?

A: The proxy uses a journal file to track changes made to the cache, this helps ensure that the proxy has an accurate picture of the cache's current state. Sometimes however, this journal can become desynced by a sudden reboot or if the proxy server crashes. You can force the proxy to rescan the disk by deleting the 'journal' file in the root directory of the cache store. Note that you will lose any custom refresh settings for all cache objects, since that information is stored in this file.