Blojsom short URL's with Apache httpd and Tomcat

Probably there are not many people who like the way default Blojsom URLs look:

http://localhost/blojsom/blog/default

The easiest way to remedy this situation is to use standard Apache HTTP proxy by adding the following lines into your Apache conf file (be it httpd.conf or
something else):

ProxyPass /blog http://localhost:8082/blojsom/blog/default/
ProxyPassReverse /blog http://localhost:8082/blojsom/blog/default/<

ProxyPass /blojsom http://localhost:8082/blojsom
ProxyPassReverse /blojsom http://localhost:8082/blojsom

The only thing that needs to be adjusted in Blojsom itself in order for this to work is Blog URL in Weblog Setttings->Properties

Blog URL: http://localhost/blog/

Also be sure that your Proxied HTTP/1.1 Connector on port 8082 is enabled in your Tomcat in server.xml (Tomcat 5.5.x in the excerpt below):

<Connector port="8082"
  maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
  enableLookups="false" acceptCount="100" connectionTimeout="20000"
  proxyPort="80" disableUploadTimeout="true"
  proxyName="localhost" />

After these changes you can use:

http://localhost/blog

as the address of your blog.