[opencms-dev] Problem with exports after upgrading from OpenCMS 7.0.3 to 8.0.0
Moritz Haase
moritz.haase at axintos.de
Tue May 31 16:02:39 CEST 2011
Hello,
i'm relatively new to OpenCMS and trying to update an existing
installation from 7.0.3 to 8.0.0. It's running on Ubuntu 10.04 with
Apache2 and Tomcat 6 and hosts multiple sites. To get rid of the
opencms/opencms-prefix, ROOT/ and mod_proxy_ajp + RewriteEngine are used
(a lot of tomcat connectors were used before, I have converted it
following
http://opencms-wiki.org/MultiSite_configuration_instructions_%28apache_%2B_mod_jk%29).
Everything worked until I upgraded to 8.0.0. As far as I can tell the
upgrade itself went fine, but if I open up the site (using the usual
domain name and no HTTPS), all the images and stylesheets are missing -
their URLs seem to be "broken". And now it gets confusing: If I log in
to the workplace (using HTTPS and the IP), browse to the index.html of
the site and click on it, i'm taken to http://www.abcdef.de/index.html
and I see no images. If I select the site in the dropdown and click on
index.html again, httpS://<ip>/index.html opens and everything is all
right...
I've enabled logging for the rewrite rules and have append the outputs
for one stylesheet and snippets from my config files. I hope somebody
can point me in the right direction to solve this problem.
Thanks for your effort!
Moritz Haase
-- BROKEN --
init rewrite engine with requested uri
/export/system/modules/com.abcdef.opencms/resources/abcdef/style1.css
applying pattern '^/$' to uri
'/export/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
applying pattern '.*' to uri
'/export/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
RewriteCond:
input='/export/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
pattern='!^/opencms/.*$' => matched
RewriteCond:
input='/export/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
pattern='!^/export/.*$' => not-matched
pass through
/export/system/modules/com.abcdef.opencms/resources/abcdef/style1.css
-- END --
-- SSL, Working --
init rewrite engine with requested uri
/system/modules/com.abcdef.opencms/resources/abcdef/style1.css
applying pattern '^/$' to uri
'/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
applying pattern '.*' to uri
'/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
RewriteCond:
input='/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
pattern='!^/opencms/.*$' => matched
RewriteCond:
input='/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
pattern='!^/export/.*$' => matched
RewriteCond:
input='/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
pattern='!^/resources/.*$' => matched
RewriteCond:
input='/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
pattern='!^/error/.*$' => matched
RewriteCond:
input='/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
pattern='!^/icons/.*$' => matched
rewrite '/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
-> '/opencms/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
forcing
'/opencms/system/modules/com.abcdef.opencms/resources/abcdef/style1.css'
to get passed through to next API URI-to-filename handler
-- END --
-- Virtual Host HTTP --
ServerName www.abcdef.de
DocumentRoot /var/www
RewriteEngine On
RewriteRule ^/$ /opencms/ [passthrough]
RewriteCond %{REQUEST_URI} !^/opencms/.*$
RewriteCond %{REQUEST_URI} !^/export/.*$
RewriteCond %{REQUEST_URI} !^/resources/.*$
RewriteCond %{REQUEST_URI} !^/error/.*$
RewriteCond %{REQUEST_URI} !^/icons/.*$
RewriteRule .* /opencms%{REQUEST_URI} [QSA,passthrough]
<Location "/opencms">
Allow from all
ProxyPass ajp://localhost:8009/opencms
</Location>
<Location "/export">
Allow from all
ProxyPass ajp://localhost:8009/export
</Location>
<Location "/resources">
Allow from all
ProxyPass ajp://localhost:8009/resources
</Location>
-- END Virtual Host HTTP --
-- Virtual Host SSL --
<VirtualHost <ip>:443>
ServerName <ip>
DocumentRoot /var/www
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-axintos-de.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-axintos-de.key
Options -Indexes
# ... same rewrite and proxy rules as above
</VirtualHost>
-- END Virtual Host SSL --
-- opencms-system.xml --
...
<workplace-server>https://<ip></workplace-server>
<default-uri>/sites/default/</default-uri>
<site server="http://www.abcdef.de" uri="/sites/abcdef/">
# + some other sites
...
-- END opencms-system.xml --
-- opencms-importexport.xml --
...
<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
<vfs-prefix/>
...
-- END opencms-importexport.xml --
More information about the opencms-dev
mailing list