Apache – what a bleeping waste of a day!

Half a day gone, on what? let’s see:

  • VirtualHost – 2 hours
  • ProxyPass – 2 more
  • RewriteRule – 10 minutes. Why didn’t I think about that first?

Anything for fellow apacheres out there? Why yes, I’d say a couple of things:

  • ProxyPass has some trailing slash problems, RewriteRule with [P] is much easier to debug, and actually works. When using it you can (should?) remove any Proxy* directive – it isn’t needed (you still get reverse proxing).
  • VirtualHost for some ungodly reason gave all the requests to the first VirtualHost directive, until I finally changed from VirtualHost * to VirtualHost *:80 (with appropriate NameVirtualHost).

Leave a Reply