Monday, May 5, 2014

liferay port redirection from port 8080 to 80

 diff server.xml server.xml-org
-----------------------------------------------------

        Connector port="8080" address="127.0.0.1"  protocol="HTTP/1.1"
----------------------------------------------------------------------------
       Connector port="8080" protocol="HTTP/1.1"
---------------------


diff  httpd.conf httpd.conf-ORG
Listen 192.168.20.29:8080
Listen 127.1.0.8:8080

--Proxy * tag start
  AddDefaultCharset Off
  Order deny,allow
  Allow from all
 --Proxy  tag stop

 ProxyPass /JSCSSAddin !
 ProxyPass /survey !
 ProxyPass /esign !
 ProxyPass /awstats !
 ProxyPass / ajp://localhost:8009/
 ProxyPassReverse / ajp://localhost:8009

To list the name of the files in a directory using 'AWK" script

To list the name of the files in a directory using script

ls -lt  /opt/AlfDB | awk {'print $9'}

Sunday, May 4, 2014

Alfresco port direction from 8080 to 80


diff server.xml server.xml-ORG

diff httpd.conf httpd.conf-org

 137,138d136
Listen 192.168.20.34:8080
Listen 127.1.0.8:8080
296,302d293
# Force http redirect to https
RewriteEngine On
RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule (.*) https://dm.joseph.com%{REQUEST_URI}

---  proxy tag start----
 AddDefaultCharset Off
 Order deny,allow
 Allow from all

--- proxy tag stop ----


ProxyPass /ar !
ProxyPass /en !
ProxyPass /web !
ProxyPass /web2 !
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/