[opencms-dev] Cleaning up the URLs (removing /opencms/opencms)

Robert Burén robert.buren at gmail.com
Mon Nov 8 16:47:58 CET 2004


Hello all,

We're trying to recreate our previous site using opencms. We're almost
there now, but not quite...

We have installed opencms as the root context in Tomcat, and removed
the value for "url_prefix_http" in opencms.properties. We also run
Apache as a reverse proxy, proxying like this:

<VirtualHost *>
ServerName internal.bluefish.se
UseCanonicalName off
NoCache *
ProxyPass /opencms/ http://internal.bluefish.se:8080/opencms/
ProxyPass /resources/ http://internal.bluefish.se:8080/resources/
ProxyPass /export/ http://internal.bluefish.se:8080/export/
ProxyPass / http://internal.bluefish.se:8080/opencms/
ProxyPassReverse / http://internal.bluefish.se:8080/opencms/
</VirtualHost>

Everything seems ok when looking at the site on
"internal.bluefish.se". However, when we log in to the admin UI we run
into some problems:
- We get a 404 when trying to view a page. It seems that the admin UI
isn't working through the apache proxy, but instead giving me a link
including the tomcat port number. This can't work, since we have
removed the url_prefix_http as described above.
- When trying to edit an html page we get the following:
com.opencms.core.CmsException: 0 Unknown exception. Detailed error:
Can not read projectId of tempfileproject for creating temporary file
for editing! java.lang.NumberFormatException: null.
	at com.opencms.workplace.CmsXmlTemplateEditor.getContent(CmsXmlTemplateEditor.java:255)
	at com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:171)
	at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:185)
	at com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)
	at com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)
[....]

Any help to get this working is much appreciated!

Thanks,

Robert



More information about the opencms-dev mailing list