From d97431b98b632c38f8d13d12ea6de4c0951452b1 Mon Sep 17 00:00:00 2001
From: "egon w. stemle" <egon.stemle@eurac.edu>
Date: Thu, 24 Oct 2019 18:15:41 +0200
Subject: [PATCH] Fix (redirect to) https://clarin.eurac.edu:8443/... not
 working

In certain situations, for example, when checking the "Other versions"
dropdown menu a request (possibly after a redirect) is made to
`port:8443`. Of course, this results in an error (because the
clarin-dspace is behind a reverse proxy).
```
OPTIONS https://clarin.eurac.edu:8443/repository/rest/handle/20.500.12124/6/refbox net::ERR_CONNECTION_TIMED_OUT
```

Here, we make sure tomcat will only redirect to `port:443` which is the
port the reverse proxy serves.
---
 dockerfiles/commul-customization/tomcat-server.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dockerfiles/commul-customization/tomcat-server.xml b/dockerfiles/commul-customization/tomcat-server.xml
index d2003f7..0286f48 100644
--- a/dockerfiles/commul-customization/tomcat-server.xml
+++ b/dockerfiles/commul-customization/tomcat-server.xml
@@ -68,8 +68,8 @@
     -->
     <Connector port="8080" protocol="HTTP/1.1"
                connectionTimeout="20000"
-	       URIEncoding="UTF-8"
-               redirectPort="8443" />
+               URIEncoding="UTF-8"
+               redirectPort="443" />
     <!-- A "Connector" using the shared thread pool-->
     <!--
     <Connector executor="tomcatThreadPool"
@@ -89,7 +89,7 @@
     -->
 
     <!-- Define an AJP 1.3 Connector on port 8009 -->
-    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
+    <Connector port="8009" protocol="AJP/1.3" redirectPort="443" />
 
 
     <!-- An Engine represents the entry point (within Catalina) that processes
-- 
GitLab