<?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 Problem redirecting HTTP-&amp;gt;HTTPS with Alfresco Share CE in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-redirecting-http-gt-https-with-alfresco-share-ce/m-p/89318#M26755</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a problem with Alfresco Share CE: When querying the `/share/` page using HTTPS, it redirects to `/share/page/` but using HTTP. This cause the NGINX reverse proxy to issue an error (see attached screenshot).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-10-06 16-17-22.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/869i7C8C4BE08B62438A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We can see that Share tries to redirect to an HTTP scheme on a port (9443) that wants HTTPS. NGINX doesn't like that and fails with an error: "400 Bad Request The plain HTTP request was sent to HTTPS port".&lt;/P&gt;&lt;P&gt;I am using the following Docker image:&amp;nbsp;alfresco/alfresco-governance-share-community:V3.4-latest&lt;/P&gt;&lt;P&gt;Share version: 6.2.1&lt;/P&gt;&lt;P&gt;JAVA_OPTS:&amp;nbsp;-Xms500m -Xmx500m -Dshare.host=localhost -Dshare.port=9443 -Dshare.protocol=https -Dalfresco.context=alfresco -Dalfresco.host=acs-repository -Dalfresco.port=8080 -Dalfresco.protocol=http -Ddb.url=jdbc:mariadb://mariadb:3306/alfresco?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=XXXXX&lt;/P&gt;&lt;P&gt;NGINX is configured to redirect all HTTP requests (port 9180) to HTTPS (port 9443). The NGINX redirection works well, but the problem is the "Location" header returned by Share.&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 18:34:36 GMT</pubDate>
    <dc:creator>fabrice7</dc:creator>
    <dc:date>2020-10-06T18:34:36Z</dc:date>
    <item>
      <title>Problem redirecting HTTP-&gt;HTTPS with Alfresco Share CE</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-redirecting-http-gt-https-with-alfresco-share-ce/m-p/89318#M26755</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a problem with Alfresco Share CE: When querying the `/share/` page using HTTPS, it redirects to `/share/page/` but using HTTP. This cause the NGINX reverse proxy to issue an error (see attached screenshot).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-10-06 16-17-22.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/869i7C8C4BE08B62438A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We can see that Share tries to redirect to an HTTP scheme on a port (9443) that wants HTTPS. NGINX doesn't like that and fails with an error: "400 Bad Request The plain HTTP request was sent to HTTPS port".&lt;/P&gt;&lt;P&gt;I am using the following Docker image:&amp;nbsp;alfresco/alfresco-governance-share-community:V3.4-latest&lt;/P&gt;&lt;P&gt;Share version: 6.2.1&lt;/P&gt;&lt;P&gt;JAVA_OPTS:&amp;nbsp;-Xms500m -Xmx500m -Dshare.host=localhost -Dshare.port=9443 -Dshare.protocol=https -Dalfresco.context=alfresco -Dalfresco.host=acs-repository -Dalfresco.port=8080 -Dalfresco.protocol=http -Ddb.url=jdbc:mariadb://mariadb:3306/alfresco?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=XXXXX&lt;/P&gt;&lt;P&gt;NGINX is configured to redirect all HTTP requests (port 9180) to HTTPS (port 9443). The NGINX redirection works well, but the problem is the "Location" header returned by Share.&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 18:34:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-redirecting-http-gt-https-with-alfresco-share-ce/m-p/89318#M26755</guid>
      <dc:creator>fabrice7</dc:creator>
      <dc:date>2020-10-06T18:34:36Z</dc:date>
    </item>
  </channel>
</rss>

