<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-GB>Hello to everyone,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>What is the right way to configure a site that can be served both in http and https (using property secure:true)?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>I have the following in opencms-system.xml:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt;text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>   <</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background:silver;mso-highlight:silver'>sites</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>            </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'><</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>workplace-server</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>https://www.site.com</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'></</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>workplace-server</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>            </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'><</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>default-uri</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>/sites/default/</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'></</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>default-uri</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>            </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'><</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>shared-folder</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>/shared/</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'></</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>shared-folder</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>            </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'><</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>site</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>server</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"http://www.site.com"</span></i> <span style='color:#7F007F'>uri</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"/sites/default/"</span></i> <span style='color:#7F007F'>title</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>""</span></i> <span style='color:#7F007F'>position</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"3.4028235E38"</span></i> <span style='color:#7F007F'>webserver</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"false"</span></i><span style='color:teal'>></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>                </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'><</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>secure</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>server</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"https://www.site.com"</span></i> <span style='color:#7F007F'>exclusive</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"true"</span></i> <span style='color:#7F007F'>error</span><span style='color:black'>=</span><i><span style='color:#2A00FF'>"false"</span></i><span style='color:teal'>/></span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>            </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'></</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>site</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:black'>            </span><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:black'>        </span><span style='font-size:10.0pt;font-family:"Courier New";color:teal'></</span><span style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;background:silver;mso-highlight:silver'>sites</span><span style='font-size:10.0pt;font-family:"Courier New";color:teal'>><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:teal'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Now if I include an external javascript resource which is outside opencms (eg: <a href="https://www.site.com/ext/file.js">https://www.site.com/ext/file.js</a>) I get a warning from the browser because the resource is loaded with http.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Opencms is changing the url even if it is put directly in the jsp. Looking at the html source the url is <a href="http://www.site.com/ext/file.js">http://www.site.com/ext/file.js</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>The other problem are image linked in css: url(“/images/image.jpg”) is first requested with https but the export url is a redirect to http.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Is this the expected behaviour or I have a wrong configuration? Do I have to set secure:true also in the images folder? (not all of the need to be secure)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Thank you,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Lisa<o:p></o:p></span></p></div></body></html>