[opencms-dev] Publishing Site in OpenCMS 9.5

Junaid Sarfraz junaidbinsarfraz at yahoo.com
Fri Jun 10 02:36:00 CEST 2016


Hi all,

I have created a new site (grcom). 

Goal
I want to view all published changes (online i.e. without login as admin). 
Problem
I publish all the changes in offline mode. Then I do Static Export (using CmsAfterPublishStaticExportHandler and CmsOnDemandStaticExportHandler) but it is NOT exporting (any of) my template resources. 
Can anyone help ?
I am using opencms 9.5. My files are as follows

opencms-system.xml
<sites> <workplace-server>http://localhost:8080</workplace-server> <default-uri>/sites/default/</default-uri> <shared-folder>/shared/</shared-folder> <site server="http://localhost:8081" uri="/sites/Grcom/" title="grcom" position="2.6584558E36" webserver="true"/> <site server="http://localhost:8080" uri="/sites/default/" title="Demo Site" position="3.4028235E38" webserver="true"/></sites>
opencms-importexport.xml
<staticexport enabled="true"> <staticexporthandler>org.opencms.staticexport.CmsAfterPublishStaticExportHandler</staticexporthandler> <!-- <staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler</staticexporthandler>  --> <!-- <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler> --> <linksubstitutionhandler>org.opencms.staticexport.CmsDefaultLinkSubstitutionHandler</linksubstitutionhandler> <exportpath>/apache-tomcat-7.0.68/webapps/opencms/export</exportpath> <exportworkpath>temp</exportworkpath> <exportbackups>2</exportbackups> <defaultpropertyvalue>false</defaultpropertyvalue> <defaultsuffixes> <suffix key=".jpg" /> <suffix key=".gif" /> <suffix key=".gif" /> <suffix key=".png" /> <suffix key=".doc" /> <suffix key=".xls" /> <suffix key=".ppt" /> <suffix key=".docx" /> <suffix key=".xlsx" /> <suffix key=".pptx" /> <suffix key=".pdf" /> <suffix key=".txt" /> <suffix key=".css" /> <suffix key=".js" /> <suffix key=".zip" /> <suffix key=".swf" /> </defaultsuffixes> <rendersettings> <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix> <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix> <userelativelinks>true</userelativelinks> <exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl> <plainoptimization>true</plainoptimization> <testresource uri="/system/shared/page.dtd" /> <resourcestorender> <regex>/sites/.*</regex> <regex>/system/workplace/commons/style/.*</regex> <regex>/system/galleries/.*</regex> <regex>/system/modules/.*/resources/.*</regex>  </resourcestorender> </rendersettings></staticexport>
(Tomcate) server.xml
<Connector port="8081" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" proxyName="http://localhost:8081" proxyPort="80" connectionTimeout="20000" disableUploadTimeout="true" />
httpd.conf
<VirtualHost *:80> ServerName http://localhost ProxyRequests off ProxyPass /grcom/ http://localhost:8081/opencms/opencms/.content/.templates/ ProxyPassReverse /grcom/ http://localhost:8081/opencms/opencms/.content/.templates/</VirtualHost>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160610/8736cc24/attachment.htm>


More information about the opencms-dev mailing list