Hi Dave, This time I gave Roller ROOT context by more conventional means - actually installed it at webapps/ROOT rather than webapps/roller. Also, following your advice, I have set "http://blog.optomus.com" as the absolute URL inside the Admin console. Next, "/roller" was removed from mod_proxy directives for all blog domains.
Using the handle "christopher" as an example: **URL** http://blog.christopher.net.nz **roller-custom.properties** weblog.absoluteurl.christopher=http://blog.christopher.net.nz **blog.christopher.net.nz.conf** ProxyPass / ajp://127.0.0.1:8009/christopher/ ProxyPassReverse / ajp://127.0.0.1:8009/christopher/ Interestingly, browsing to http://blog.optomus.com reveals a simple page containing the message "Place your content here". I notice Roller's web.xml contains no default servlet. Is this normal? Also, roller.log reveals some interesting error messages... INFO 2010-10-06 21:45:11,196 IndexManagerImpl:<init> - index dir: /home/dave/roller_data/search-index ERROR 2010-10-06 21:45:14,912 IndexManagerImpl:initialize - java.io.IOException: No such file or directory ERROR 2010-10-06 21:45:15,135 IndexManagerImpl:createIndex - Error creating index java.io.IOException: Cannot create directory: /home/dave/roller_data/search-index INFO 2010-10-06 21:45:15,137 IndexManagerImpl:initialize - Index was inconsistent. Rebuilding index in the background... ERROR 2010-10-06 21:45:15,163 IndexOperation:beginWriting - ERROR creating writer java.io.IOException: Cannot create directory: /home/dave/roller_data/search-index INFO 2010-10-06 21:45:15,172 RebuildWebsiteIndexOperation:doRun - Completed rebuilding index for all users in '0.022' secs ERROR 2010-10-06 21:45:15,173 JPAMediaFileManagerImpl:upgradeFileStorage - ERROR upgrading java.lang.NullPointerException INFO 2010-10-06 21:45:20,119 InitFilter:getAbsoluteUrl - http://127.0.0.1:8080 The last entry wasn't what I was expecting to see. Hoping there are some clues here as to what is going wrong. Regards, Chris Dodunski. > On Sun, Oct 3, 2010 at 8:08 PM, Christopher Dodunski > <chrisfromsquir...@christopher.net.nz> wrote: >> Hi Dave, >> >> Thank you, I appreciate your help. I'll persevere with getting Roller >> working correctly with root context but, ideally, it would be better not >> to have web applications require root context. It isn't always possible >> to grant it. > > Roller does not require the root context, but I've only tried the > multi-domain feature at the root context. > > >> Having said that, it seems that my particular problem has more to do >> with >> proxying. I think the ProxyPassReverse directive is inserting >> "/roller/christopher" into URLs contained in HTTP headers. If true, >> then >> this is of interest to you. As I expect many Tomcat containers are >> operating behind Apache HTTP (proxy) servers. This becomes an issue >> with >> Roller multi-domaining. > > Yes, I agree this is a common setup. > > My question is how does the proxy know about '/roller'? It seem like > that is part of the problem and what you want is for the proxy to only > insert '/christopher'. > > >> How does Roller enquire the hostname when rendering these URLs? From >> the >> header of the incoming HTTP request perhaps? Roller then responds with >> the associated blog/handle as defined in roller-custom.properties? > > Normally, Roller will determine the URL to use in responses based on > the URL used in requests. In cases where that will not work, you can > specify the absolute URL of a site via the Server Admin page. > > - Dave >