AnsweredAssumed Answered

Share published but not Alfresco

Question asked by pitacsk8 on Feb 13, 2014
Latest reply on Mar 4, 2014 by pitacsk8
I want to deploy Alfresco (explorer) and Share on the same server with the same Tomcat with HTTPS via AJP using Apache ProxyPass.

But I only want to publish on the Internet the URL of Share. So the URL are:

(internal) https://internalServerName/alfresco

But a very strange behavior occurs.

These are the main settings:


    <config evaluator="string-compare" condition="Server">
   <config evaluator="string-compare" condition="Remote">
   <config evaluator="string-compare" condition="Remote">




<strong>THE PROBLEM:</strong>
When I call the URL:
This is the response:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
   <title>Alfresco &raquo; Panel de inicio de usuario</title>
   <meta http-equiv="X-UA-Compatible" content="IE=Edge" />

   <!– Icons –>
   <link rel="shortcut icon" href="https://internalServerName/share/res/favicon.ico" type="image/" />
   <link rel="icon" href="https://internalServerName/share/res/favicon.ico" type="image/" />

   <!– YUI –>
   <script type="text/javascript" src="https://internalServerName/share/res/js/yui-common.js"></script>
   <script type="text/javascript" src="https://internalServerName/share/res/js/bubbling.v2.1-min.js"></script>
   <script type="text/javascript">//<![CDATA[
      YAHOO.Bubbling.unsubscribe = function(layer, handler, scope)
         this.bubble[layer].unsubscribe(handler, scope);

   <!– Common i18n msg properties –>
   <script type="text/javascript" src="https://internalServerName/share/service/messages.js?locale=es"></script>

   <!– Alfresco web framework constants –>
   <script type="text/javascript">//<![CDATA[
      Alfresco.constants = Alfresco.constants || {};
      Alfresco.constants.DEBUG = false;
      Alfresco.constants.AUTOLOGGING = false;
      Alfresco.constants.PROXY_URI = window.location.protocol + "//" + + "/share/proxy/alfresco/";
      Alfresco.constants.PROXY_URI_RELATIVE = "/share/proxy/alfresco/";
      Alfresco.constants.PROXY_FEED_URI = window.location.protocol + "//" + + "/share/proxy/alfresco-feed/";
      Alfresco.constants.THEME = "chapTheme";
      Alfresco.constants.URL_CONTEXT = "/share/";

I've noticed that the freemarker variable ${url.context} is rendered like "https://internalServerName/share" when it's inside an attribute href or src, but when it's in another place, like for example the javascript code that we can see above, it's rendered only "/share".

Stated another way, if I put the next on a .ftl:

<a href="${url.context}">click</a>

This is the result:

<a href="https://internalServerName/share">click</a>

The expected result is that the value of $ {url.context} was always "/share", but not!

The problem is that if you are on the Internet on you cannot see the internal URLs like https://internalServerName/share/res/js/yui-common.js

I am not able to figure out why it can be produced this behavior. Can anyone help me? Thanks.