<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>Hello
list</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>The export function
is giving me hell.</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>Our system is
modified the "old" way, with mod_jk and mod_rewrite. We've got this setup
running on several servers.</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>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. </FONT></SPAN><SPAN class=469531116-15042009><FONT face=Arial
size=2>I tried to clear the export folder, but that did not help. The export
folder remains _empty_!</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>Apache's error log
shows a whole bunch of errors like this
one:</FONT></SPAN></DIV><SPAN class=469531116-15042009><FONT>
<DIV><BR><FONT face=Arial size=2>proxy: DNS lookup failure
for: dev.cruise-handbook.npolar.no returned by
/export/system/modules/no.npolar.cruise/resources/construction.jpg, referer:
</FONT><A
href="http://dev.cruise-handbook.npolar.no/en/hornsund/index.html"><FONT
face=Arial color=#000000
size=2>http://dev.cruise-handbook.npolar.no/en/hornsund/index.html</FONT></A></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=469531116-15042009>I double checked
using nslookup, and all is fine - the relevant domains are all pointing to
the correct server.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>This is our
<VirtualHost> section of httpd.conf (which by the way was working
fine when <A href="http://www.arcticsystem.no">www.arcticsystem.no</A> was
placed in /sites/default/arcticsystem):</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2><BR><VirtualHost
*:80><BR> DocumentRoot
"/usr/local/apache-tomcat-5.5.26/webapps/cms2/"<BR>
ServerName cms2.npolar.no<BR>
ServerAlias <A href="http://www.arcticsystem.no">www.arcticsystem.no</A>
arcticsystem.no dev.mosj.npolar.no
dev.cruise-handbook.npolar.no</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2><BR>
SetEnvIfNoCase Request_URI ^/cms2/resources/.*$ no-jk</FONT></SPAN><SPAN
class=469531116-15042009><FONT face=Arial size=2></DIV>
<DIV><BR>
SetEnvIfNoCase Request_URI ^/export/.*$ no-jk</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2>
RewriteEngine on</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2>
RewriteCond %{REQUEST_URI}
!^/cms2/resources/.*$<BR>
RewriteCond %{REQUEST_URI}
!^/export/.*$<BR>
RewriteRule !^/cms2/opencms/(.*)$ /cms2/opencms%{REQUEST_URI}
[PT]</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2>
RewriteCond %{REQUEST_URI}
^/export/.*$<BR>
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}"
!-f<BR>
RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html"
!-f<BR>
RewriteRule .*
/cms2/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}
[P]</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2><BR>
RewriteCond %{REQUEST_URI}
^/cms2/resources/.*$<BR>
RewriteRule ^/cms2/(.*)$ /$1</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2>
JkMount /* ocms<BR></VirtualHost></FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>and the
<sites> section of opencms-system.xml:</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2><sites><BR>
<workplace-server>http://cms2.npolar.no</workplace-server><BR>
<default-uri>/sites/default/</default-uri><BR>
<site server="<A href="http://cms2.npolar.no">http://cms2.npolar.no</A>"
uri="/sites/default/"/></FONT></SPAN><SPAN class=469531116-15042009><FONT
face=Arial size=2><BR> <site server="<A
href="http://www.arcticsystem.no">http://www.arcticsystem.no</A>"
uri="/sites/arcticsystem/"/></FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2> <!-- <site server="<A
href="http://www.arcticsystem.no">http://www.arcticsystem.no</A>"
uri="/sites/default/arcticsystem/"/> --><BR>
<site server="<A
href="http://dev.mosj.npolar.no">http://dev.mosj.npolar.no</A>"
uri="/sites/mosj/"/><BR> <site server="<A
href="http://dev.cruise-handbook.npolar.no">http://dev.cruise-handbook.npolar.no</A>"
uri="/sites/cruise/"/><BR></sites></FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>and the modified
part of opencms-importexport.xml:</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009> </DIV>
<DIV><FONT face=Arial
size=2><rfs-prefix>/export</rfs-prefix><BR><vfs-prefix/><BR></FONT></SPAN><SPAN
class=469531116-15042009><FONT><FONT face=Arial></DIV>
<DIV><BR></DIV><FONT size=2></FONT></FONT></FONT></SPAN>
<DIV><SPAN class=469531116-15042009><FONT face=Arial size=2>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?</FONT></SPAN></DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=469531116-15042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1>Best
regards</FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000
size=1></FONT> </DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000
size=2><STRONG>Paul-Inge Flakstad</STRONG></FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1><STRONG><EM>web
developer</EM></STRONG></FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1><A
href="mailto:flakstad@npolar.no">flakstad@npolar.no</A></FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1>office: +47 77
75 06 39 | cell-phone: +47 905 94 924</FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1>Norwegian Polar
Institute </FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1>Polar
Environmental Centre</FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1>NO-9296
Tromsų</FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000
size=1>NORWAY</FONT></DIV>
<DIV align=left><FONT face="Century Gothic" color=#808000 size=1><A
href="http://www.npolar.no/">www.npolar.no</A></FONT></DIV></DIV></BODY></HTML>