<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is it possible to share HTTP and HTTPS ports at the same time? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-share-http-and-https-ports-at-the-same-time/m-p/95877#M28194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to check is it possible to set both HTTP and HTTPS running at the same time, something like with URLs below.&lt;/P&gt;&lt;P&gt;&lt;A href="http://alfresco.domain.com:8080/" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;http://alfresco.domain.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://alfresco.domain.com:8080/" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;https://alfresco.domain.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My co-worker is developing a client for Alfresco and he would need to test that the client is working with both HTTP and HTTPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got alfresco 5.2 running on URL &lt;A href="http://alfresco.domain.com:8080" rel="nofollow noopener noreferrer"&gt;http://alfresco.domain.com:8080&lt;/A&gt;&lt;BR /&gt;Server is Ubuntu 16.04 with Apache2 installed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My understanding is that I need to configure&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="" style="background-color: #ffffff; font-size: 14px;"&gt;alfresco-global.properties&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: #58595b; font-size: 14px; "&gt;&amp;nbsp;as in document&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.2/tasks/configure-ssl-prod.html" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.2/tasks/configure-ssl-prod.html&lt;/A&gt;&amp;nbsp;but in this document there's only information about sharing https port.&lt;BR /&gt;Is it possible to share port 80 and 443 at the same time?&lt;BR /&gt;&lt;BR /&gt;Other option what I'm thinking is to use URL&amp;nbsp;&lt;A href="http://alfresco.domain.com:8080" style="color: #2989c5; text-decoration: underline;" rel="nofollow noopener noreferrer"&gt;http://alfresco.domain.com:8080&lt;/A&gt;&amp;nbsp;for HTTP testing as this way the user/client is connecting straight to &lt;STRONG&gt;tomcat&lt;/STRONG&gt;. For HTTPS I'd configure as instructed in the document above and use URL&amp;nbsp;&lt;A href="http://alfresco.domain.com:8080/" style="color: #2989c5; text-decoration: none;" rel="nofollow noopener noreferrer"&gt;https://alfresco.domain.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2019 08:59:03 GMT</pubDate>
    <dc:creator>iisti</dc:creator>
    <dc:date>2019-06-27T08:59:03Z</dc:date>
    <item>
      <title>Is it possible to share HTTP and HTTPS ports at the same time?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-share-http-and-https-ports-at-the-same-time/m-p/95877#M28194</link>
      <description>I've been trying to check is it possible to set both HTTP and HTTPS running at the same time, something like with URLs below.http://alfresco.domain.comhttps://alfresco.domain.comMy co-worker is developing a client for Alfresco and he would need to test that the client is working with both HTTP and H</description>
      <pubDate>Thu, 27 Jun 2019 08:59:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-share-http-and-https-ports-at-the-same-time/m-p/95877#M28194</guid>
      <dc:creator>iisti</dc:creator>
      <dc:date>2019-06-27T08:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to share HTTP and HTTPS ports at the same time?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-share-http-and-https-ports-at-the-same-time/m-p/95878#M28195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still not sure if it's possible to share both protocols at the same time, but I can access with both HTTP and HTTPS&amp;nbsp;Alfresco 5.2 running on Ubuntu 16.04 with these steps.&lt;/P&gt;&lt;PRE style="color: #172b4d; background-color: #f4f5f7; margin: 12px 0px; padding: 8px 12px;"&gt;sudo a2enmod rewrite&lt;BR /&gt;sudo apt-get install libapache2-mod-jk&lt;BR /&gt;sudo a2enmod proxy&lt;BR /&gt;sudo a2enmod proxy_http&lt;BR /&gt;sudo /opt/alfresco-community/alfresco.sh stop&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Uncomment line below from server.xml&lt;/P&gt;&lt;P&gt;sudo vim /opt/alfresco-community/tomcat/conf/server.xml&lt;/P&gt;&lt;PRE style="color: #172b4d; background-color: #f4f5f7; margin: 12px 0px; padding: 8px 12px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" /&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Check worker properties.&amp;nbsp;These settings were automatically generated, nothing needed to be changed.&lt;/P&gt;&lt;P&gt;sudo vim /etc/libapache2-mod-jk/workers.properties&lt;/P&gt;&lt;PRE style="color: #172b4d; background-color: #f4f5f7; margin: 12px 0px; padding: 8px 12px;"&gt;worker.list=ajp13_worker&lt;BR /&gt;worker.ajp13_worker.port=8009&lt;BR /&gt;worker.ajp13_worker.host=localhost&lt;BR /&gt;worker.ajp13_worker.type=ajp13&lt;BR /&gt;worker.ajp13_worker.lbfactor=1&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;# Apache configuration&lt;BR /&gt;# If you don't have SSL certs you need to comment the SSL part out. You can generate SSL certs with certbot.&lt;BR /&gt;#&amp;nbsp;&lt;A href="https://certbot.eff.org/lets-encrypt/ubuntuxenial-apache" rel="nofollow noopener noreferrer"&gt;https://certbot.eff.org/lets-encrypt/ubuntuxenial-apache&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/etc/apache2$ cat sites-enabled/alfresco-https.example-domain.com.conf&lt;/P&gt;&lt;PRE style="color: #172b4d; background-color: #f4f5f7; margin: 12px 0px; padding: 8px 12px;"&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;BR /&gt; ServerAdmin it@example-domain.com&lt;BR /&gt; ServerName alfresco-https.example-domain.com&lt;BR /&gt;&lt;BR /&gt; ErrorLog ${APACHE_LOG_DIR}/error.log&lt;BR /&gt; CustomLog ${APACHE_LOG_DIR}/access.log combined&lt;BR /&gt;&lt;BR /&gt; ProxyPreserveHost On&lt;BR /&gt;&lt;BR /&gt; # Making sure that pgadmin4 is excluded from proxy&lt;BR /&gt; ProxyPass /pgadmin4 !&lt;BR /&gt; ProxyPassReverse /pgadmin4 !&lt;BR /&gt;&lt;BR /&gt; ProxyPass / http://localhost:8080/&lt;BR /&gt; ProxyPassReverse / http://localhost:8080/&lt;BR /&gt;&lt;BR /&gt; # Disable footer line (more security, by not giving apache version)&lt;BR /&gt; # Source: https://www.tecmint.com/hide-apache-web-server-version-information/&lt;BR /&gt; ServerSignature Off &lt;BR /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;VirtualHost *:443&amp;gt;&lt;BR /&gt; ServerName alfresco-https.example-domain.com&lt;BR /&gt; &lt;BR /&gt; ErrorLog ${APACHE_LOG_DIR}/https-error.log&lt;BR /&gt; CustomLog ${APACHE_LOG_DIR}/https-access.log combined&lt;BR /&gt; &lt;BR /&gt; SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0&lt;BR /&gt; # JkOptions indicate to send SSL KEY SIZE,&lt;BR /&gt; JkOptions +ForwardKeySize -ForwardDirectories&lt;BR /&gt; &lt;BR /&gt; # Using ajp13_worker as that's default setting in /etc/libapache2-mod-jk/workers.properties&lt;BR /&gt; # Setting is created automatically when installnig libapache2-mod-jk&lt;BR /&gt; # sudo apt-get install libapache2-mod-jk&lt;BR /&gt; JkMount /share ajp13_worker&lt;BR /&gt; JkMount /share/* ajp13_worker&lt;BR /&gt; JkMount /alfresco/webdav ajp13_worker&lt;BR /&gt; JkMount /alfresco/webdav/* ajp13_worker&lt;BR /&gt; JkMount / ajp13_worker&lt;BR /&gt; JkMount /_vti_inf.html ajp13_worker&lt;BR /&gt; JkMount /_vti_bin/* ajp13_worker&lt;BR /&gt; JkMount /alfresco ajp13_worker&lt;BR /&gt; JkMount /alfresco/ ajp13_worker&lt;BR /&gt; JkMount /alfresco/aos ajp13_worker&lt;BR /&gt; JkMount /alfresco/aos/* ajp13_worker&lt;BR /&gt; JkMount /alfresco/images/* ajp13_worker &lt;BR /&gt; JkMount /alfresco/css/* ajp13_worker&lt;BR /&gt; # Un-comment these lines for public API access&lt;BR /&gt; JkMount /alfresco/api/*/cmis/versions/* ajp13_worker &lt;BR /&gt; JkMount /alfresco/api/*/public/cmis/versions/* ajp13_worker&lt;BR /&gt; JkMount /alfresco/api/*/public/alfresco/versions/* ajp13_worker&lt;BR /&gt; JkMount /alfresco/service/api/server ajp13_worker &lt;BR /&gt; JkMount /alfresco/cmisatom/* ajp13_worker &lt;BR /&gt; JkMount /alfresco/service/cmis/* ajp13_worker&lt;BR /&gt; JkMount /alfresco/api/cmis/versions/* ajp13_worker&lt;BR /&gt; # Un-comment these lines for Desktop Sync&lt;BR /&gt; # JkMount /alfresco/api/*/private/alfresco/versions/* ajp13_worker&lt;BR /&gt; &lt;BR /&gt; SSLCertificateFile /etc/letsencrypt/live/alfresco-https.example-domain.com/fullchain.pem&lt;BR /&gt; SSLCertificateKeyFile /etc/letsencrypt/live/alfresco-https.example-domain.com/privkey.pem&lt;BR /&gt; Include /etc/letsencrypt/options-ssl-apache.conf&lt;BR /&gt;&lt;BR /&gt; # Disable footer line (more security, by not giving apache version)&lt;BR /&gt; # Source: https://www.tecmint.com/hide-apache-web-server-version-information/&lt;BR /&gt; ServerSignature Off &lt;BR /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;BR /&gt;# vim: syntax=apache ts=4 sw=4 sts=4 sr noet&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;#&amp;nbsp;Check Apache configuration and restart it&lt;BR /&gt;sudo apachectl configtest&lt;/P&gt;&lt;P&gt;sudo apachectl restart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Start Alfresco&lt;BR /&gt;sudo /opt/alfresco-community/alfresco.sh start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Check Alfresco starting logs to know when the server has really started.&lt;BR /&gt;less +F /opt/alfresco-community/tomcat/logs/catalina.out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# URLs below should work after Alfresco has been started.&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #172b4d; background-color: #f4f5f7; margin: 12px 0px; padding: 8px 12px;"&gt;http://alfresco-https.example-domain.com&lt;BR /&gt;http://alfresco-https.example-domain.com:8080&lt;BR /&gt;https://alfresco-https.example-domain.com&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't change anything in alfresco-global.properties, but I haven't installed the server originally, so I'm not sure if something has been configured in there. Here's the whole file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #172b4d; background-color: #ffffff;"&gt;alfresco-https:/opt/alfresco-community/tomcat/shared/classes$ sudo less alfresco-global.properties&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="background-color: #f4f5f7; margin: 12px 0px 0px; padding: 8px 12px;"&gt;###############################&lt;BR /&gt;## Common Alfresco Properties #&lt;BR /&gt;###############################&lt;BR /&gt;&lt;BR /&gt;dir.root=/opt/alfresco-community/alf_data&lt;BR /&gt;&lt;BR /&gt;alfresco.context=alfresco&lt;BR /&gt;alfresco.host=127.0.0.1&lt;BR /&gt;alfresco.port=8080&lt;BR /&gt;alfresco.protocol=http&lt;BR /&gt;&lt;BR /&gt;share.context=share&lt;BR /&gt;share.host=127.0.0.1&lt;BR /&gt;share.port=8080&lt;BR /&gt;share.protocol=http&lt;BR /&gt;&lt;BR /&gt;### database connection properties ###&lt;BR /&gt;db.driver=org.postgresql.Driver&lt;BR /&gt;db.username=alfresco&lt;BR /&gt;db.password=admin&lt;BR /&gt;db.name=alfresco&lt;BR /&gt;db.url=jdbc:postgresql://localhost:5432/${db.name}&lt;BR /&gt;# Note: your database must also be able to accept at least this many connections. Please see your database documentation for instructions on how to configure this.&lt;BR /&gt;db.pool.max=275&lt;BR /&gt;db.pool.validate.query=SELECT 1&lt;BR /&gt;&lt;BR /&gt;# The server mode. Set value here&lt;BR /&gt;# UNKNOWN | TEST | BACKUP | PRODUCTION&lt;BR /&gt;system.serverMode=UNKNOWN&lt;BR /&gt;&lt;BR /&gt;### FTP Server Configuration ###&lt;BR /&gt;ftp.port=21&lt;BR /&gt;&lt;BR /&gt;### RMI registry port for JMX ###&lt;BR /&gt;alfresco.rmi.services.port=50500&lt;BR /&gt;&lt;BR /&gt;### External executable locations ###&lt;BR /&gt;ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin&lt;BR /&gt;ooo.enabled=true&lt;BR /&gt;ooo.port=8100&lt;BR /&gt;img.root=/opt/alfresco-community/common&lt;BR /&gt;img.dyn=${img.root}/lib&lt;BR /&gt;img.exe=${img.root}/bin/convert&lt;BR /&gt;alfresco-pdf-renderer.root=/opt/alfresco-community/common/alfresco-pdf-renderer&lt;BR /&gt;alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer&lt;BR /&gt;&lt;BR /&gt;jodconverter.enabled=false&lt;BR /&gt;jodconverter.officeHome=/opt/alfresco-community/libreoffice&lt;BR /&gt;jodconverter.portNumbers=8100&lt;BR /&gt;&lt;BR /&gt;### Initial admin password ###&lt;BR /&gt;alfresco_user_store.adminpassword=209c6174da490caeb422f3fa5a7ae634&lt;BR /&gt;&lt;BR /&gt;### E-mail site invitation setting ###&lt;BR /&gt;notification.email.siteinvite=false&lt;BR /&gt;&lt;BR /&gt;### License location ###&lt;BR /&gt;dir.license.external=/opt/alfresco-community&lt;BR /&gt;&lt;BR /&gt;### Solr indexing ###&lt;BR /&gt;index.subsystem.name=solr4&lt;BR /&gt;dir.keystore=${dir.root}/keystore&lt;BR /&gt;solr.host=localhost&lt;BR /&gt;solr.port.ssl=8443&lt;BR /&gt;alfresco-global.properties&lt;CODE style="background-color: #f4f5f7;"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 12:14:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-it-possible-to-share-http-and-https-ports-at-the-same-time/m-p/95878#M28195</guid>
      <dc:creator>iisti</dc:creator>
      <dc:date>2019-07-03T12:14:49Z</dc:date>
    </item>
  </channel>
</rss>

