[opencms-dev] problem with relative URL

ARTIERI ADRIANO aartieri at sogei.it
Tue Mar 7 15:49:19 CET 2017


Hello everyone, I have a problem with the link relative inserted through tiny Editor.

My setup is as follows:

Architecture on three levels:
Apache Web Server v.2.2
Application servers Tomcat v.7
Data base server Oracle 11g

The conversation between apache and tomcat is via AJP port

Opencms v. 10.0.1

http: //redazione.example.com  (not accessible from the Internet)
Site URL http://www.siteonline.com

opencms-system.xml
    <Sites>
            <Workplace-server> http://redazione.example.com </ workplace-server>
            <Default-uri> / sites / default / </ default-uri>
            <Shared-folder> / shared / </ shared-folder>
            <Site server = "http://redazione.example.com" uri = "/ sites / default /" title = "default" position = "8.5070587E37" webserver = "true" />
            <Site server = "http://www.siteonline.com" uri = "/ sites / siteonline /" title = "siteonline" position = "1.7014117E38" webserver = "true" />
        </ Sites>

opencms-importexport.xml
<Rendersettings>
<Rfs-prefix> / export </ rfs-prefix>
<Vfs-prefix> </ vfs-prefix>
<Userelativelinks> false </ 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>



When I insert a relative link
/pat1/index.html ->automatic convert to --> http: //redazione.example.com/pat1/index.html

On the online site page (http://www.siteonline.com)

I have a broken link because the link is not converted to http://www.siteonline.com/pat1/index.html

Any help you can offer will be greatly appreciated.


Thanks,
Adriano



________________________________

Le informazioni contenute in questo messaggio di posta elettronica sono da considerarsi riservate e confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario in indirizzo e ne è vietata la diffusione in qualunque modo eseguita, salvo che ne sia data espressa autorizzazione dal mittente. Nel caso in cui il messaggio Le fosse pervenuto per errore, La invitiamo gentilmente ad eliminarlo in modo permanente dopo averne dato tempestiva comunicazione al mittente e a non utilizzare in alcun caso il suo contenuto. Qualsivoglia utilizzo non autorizzato di questo messaggio e dei suoi eventuali allegati espone il responsabile alle relative conseguenze civili e penali.

This communication is confidential and the use of the contained information is allowed solely for the intended recipient. Its disclosure, distribution or copying is prohibited, unless expressly authorized by the sender. If you receive this communication by mistake please notify us and delete the message and its attachments. Anyone responsible for the unauthorized use of this message and its attachments is liable to face legal consequences.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170307/e23e1dc1/attachment.htm>


More information about the opencms-dev mailing list