Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Tomando como ejemplo en nombre del servidor "www.ideasoft.biz" y el puerto por defecto de https "443"

Note
titleSSL con java 1.7

A partir de la versión 6.4.x se utiliza java 1.7. Y para que funciones SSL con java 1.7 hay que agregar la property:

en linux (jboss.sh y liferay.sh):
JAVA_OPTS="$JAVA_OPTS -Djsse.enableSNIExtension=false"

en windows (JBoss.bat y Liferay.bat):
set JAVA_OPTS=%JAVA_OPTS% -Djsse.enableSNIExtension=false

Portlets.properties

o3.http.host=www.ideasoft.biz
o3.http.port=443
liferay.port=443

o3.http=https://${o3.http.host}:${o3.http.port}

urlPrefixPortal=https\://${o3.http.host}\:${o3.http.port}/o3web
urlPrefixUploadFiles=https\://${o3.http.host}\:${o3.http.port}
urlPrefixExist = https://${o3.http.host}:${o3.http.port}
urlPrefixRest=http\://localhost\:PUERTO_SERVIDOR

O3Server.properties

http.host=localhostSERVIDOR
http.port=PUERTO_APACHE_O_SERVIDOR (ejemplo si es un apache va: 80, sino va el 8080, o el que se use)

gis.o3portal.url = https://www.ideasoft.biz/o3portal
geoserver.url = https://www.ideasoft.biz/geoserver
eportal.url = https://www.ideasoft.biz/eportal

O3Web.properties

o3.http.upload.host=www.ideasoft.biz
o3.http.upload.port=443

urlPrefixRest=http\://localhost\:8080PUERTO_SERVIDOR
urlPrefixChannel=https://www.ideasoft.biz/o3-parts-blaze-web
urlPrefixTicket=http\://localhost\:8080PUERTO_SERVIDOR
urlPrefixResources=https://www.ideasoft.biz/o3-parts-blaze-web
urlPrefixUploadFiles=https://${o3.http.upload.host}:${o3.http.upload.port}
urlPrefixPortal=https://${o3.http.upload.host}:${o3.http.upload.port}

<o3>/liferay/tomcat/webapps/eportal/WEB-INF/classes/portal-ext.properties

host.name=demowww.ideasoft.biz
o3.cas.server.host=${host.name}
o3.base.url= http https://${host.name}
liferay.host=${host.name}

cas.login.url=https://${o3.cas.server.host}/cas/login
cas.logout.url=https://${o3.cas.server.host}/cas/logout?service=https://${liferay.host}/eportal

cas.validate.url=http://localhost:PUERTO_SERVIDOR/cas/proxyValidate

<o3>/liferay/tomcat/webapps/eportal/WEB-INF/web.xml

Buscar el filtro "o3ClientSSOLiferayFilter" y "o3ClientSSOLogoutLiferayFilter" y agregar el "init-param" llamado "serverName" con el valor "demowww.ideasoft.biz" (en lugar de "localhost:8080")

<o3>/liferay/tomcat/webapps/o3-parts-web/WEB-INF/classes/portlets-config/portlets-config.properties

urlPrefixChannelurlPrefixLogout=http\://demo.ideasoft.bizlocalhost\:PUERTO_SERVIDOR/o3-parts-webrest
urlPrefixUploadFilesurlPrefixRest=http\://demo.ideasoft.biz

Configuración de mod_jk en apache

(Luego de agregar los workers en el archivo "conf/workers.properties" agregar el host virtual en "conf.d/virtualhost.conf")

<VirtualHost *:80>
    ServerName example.xxx.org
    ServerAdmin webmaster@xxx.org
    JKMount /o3web worker12
    JKMount /o3web/* worker12
    JKMount /exist worker12
    JKMount /exist/* worker12
    JKMount /o3report worker12
    JKMount /o3report/* worker12
    JKMount /cas worker12
    JKMount /cas/* worker12
    JKMount /o3-rest worker12
    JKMount /o3-rest/* worker12
    JKMount /rbac-rest worker12
    JKMount /rbac-rest/* worker12
    JKMount /o3-parts-blaze-web worker12
    JKMount /o3-parts-blaze-web/* worker12
    JKMount /o3bpa worker13
    JKMount /o3bpa/* worker13
    JKMount /eportal worker14
    JKMount /eportal/* worker14
    JKMount /eportalthemes worker14
    JKMount /eportalthemes/* worker14
    JKMount /o3-liferay-theme worker14
    JKMount /o3-liferay-theme/* worker14
    JKMount /geoserver worker14
    JKMount /geoserver/* worker14
    JKMount /o3-parts-web worker14
    JKMount /o3-parts-web/* worker14
    JKMount /o3portal worker14
    JKMount /o3portal/* worker14
</VirtualHost>localhost\:PUERTO_SERVIDOR
urlPrefixChannel=https\://www.ideasoft.biz/o3-parts-web
urlPrefixTicket=http\://localhost\:PUERTO_SERVIDOR
urlPrefixPortal=https\://www.ideasoft.biz/o3web
urlPrefixUploadFiles=https\://www.ideasoft.biz
urlPrefixServerSync=https\://www.ideasoft.biz/o3web
urlPrefixExist=https\://www.ideasoft.biz