Problem redirecting HTTP->HTTPS with Alfresco Share CE

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2020 02:34 PM
Hi All,
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).
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".
I am using the following Docker image: alfresco/alfresco-governance-share-community:V3.4-latest
Share version: 6.2.1
JAVA_OPTS: -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&useUnicode=true&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=XXXXX
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.
Thanks for any help!
- Labels:
-
Alfresco Content Services
