[opencms-dev] Sites down due to export error

Paul-Inge Flakstad flakstad at npolar.no
Wed Apr 15 18:46:10 CEST 2009


Hello list

The export function is giving me hell.

Our system is modified the "old" way, with mod_jk and mod_rewrite. We've got this setup running on several servers.

When we started using OpenCms, we mistakenly assumed that all site folders should be placed under the "/sites/default" folder, e.g. /sites/default/site1 and /sites/default/site2. We then discovered that this was not a good idea, due to the overlapping "default" folder, so I am currently in the process of moving folders from /sites/default to /sites - so we get e.g. /sites/site1 and /sites/site2 instead.

The problem on this particular server is that static resources (css files, images and such) are not getting exported like they should after I moved the folders. I tried to clear the export folder, but that did not help. The export folder remains _empty_!

Apache's error log shows a whole bunch of errors like this one:

proxy: DNS lookup failure for: dev.cruise-handbook.npolar.no returned by /export/system/modules/no.npolar.cruise/resources/construction.jpg, referer: http://dev.cruise-handbook.npolar.no/en/hornsund/index.html

I double checked using nslookup, and all is fine - the relevant domains are all pointing to the correct server.

This is our <VirtualHost> section of httpd.conf (which by the way was working fine when www.arcticsystem.no<http://www.arcticsystem.no> was placed in /sites/default/arcticsystem):

<VirtualHost *:80>
        DocumentRoot "/usr/local/apache-tomcat-5.5.26/webapps/cms2/"
        ServerName cms2.npolar.no
        ServerAlias www.arcticsystem.no<http://www.arcticsystem.no> arcticsystem.no dev.mosj.npolar.no dev.cruise-handbook.npolar.no

                SetEnvIfNoCase Request_URI ^/cms2/resources/.*$ no-jk

                SetEnvIfNoCase Request_URI ^/export/.*$ no-jk

                RewriteEngine on

                RewriteCond %{REQUEST_URI} !^/cms2/resources/.*$
                RewriteCond %{REQUEST_URI} !^/export/.*$
                RewriteRule !^/cms2/opencms/(.*)$ /cms2/opencms%{REQUEST_URI} [PT]

                RewriteCond %{REQUEST_URI} ^/export/.*$
                RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
                RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
                RewriteRule .* /cms2/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]

                RewriteCond %{REQUEST_URI} ^/cms2/resources/.*$
                RewriteRule ^/cms2/(.*)$ /$1

                JkMount /* ocms
</VirtualHost>

and the <sites> section of opencms-system.xml:

<sites>
      <workplace-server>http://cms2.npolar.no</workplace-server>
      <default-uri>/sites/default/</default-uri>
      <site server="http://cms2.npolar.no" uri="/sites/default/"/>
      <site server="http://www.arcticsystem.no" uri="/sites/arcticsystem/"/>
      <!-- <site server="http://www.arcticsystem.no" uri="/sites/default/arcticsystem/"/> -->
      <site server="http://dev.mosj.npolar.no" uri="/sites/mosj/"/>
      <site server="http://dev.cruise-handbook.npolar.no" uri="/sites/cruise/"/>
</sites>

and the modified part of opencms-importexport.xml:

<rfs-prefix>/export</rfs-prefix>
<vfs-prefix/>

I'm quite stuck at this, since I'm no expert in neither Apache or OpenCms. Does anybody have a clue as to what might be wrong?



Best regards

Paul-Inge Flakstad
web developer
flakstad at npolar.no<mailto:flakstad at npolar.no>
office: +47 77 75 06 39  |  cell-phone: +47 905 94 924
Norwegian Polar Institute
Polar Environmental Centre
NO-9296 Tromsø
NORWAY
www.npolar.no<http://www.npolar.no/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20090415/b616594e/attachment.htm>


More information about the opencms-dev mailing list