JSM DC SSL not working on Apache on OpenSuse latest
Asked by Mariano Edvardsson:

Hello! I've followed this instructions to enable SSL (through my CloudFlare domain) on my Jira DC instance:

<https://thejiraguy.com/2021/10/14/adding-ssl-to-jira/>

Unfortunately it didn't work. I get a constant 301 loop (I guess http sends to https and so on?).

I'm going a bit crazy trying to figure out where the loop happens. I've tried a few options like setting `ProxyRequests Off` and also setting my domain directly as HTTPS:

```
ProxyPass / https://jira.mediasoft.com:8080/

ProxyPassReverse / https://jira.mediasoft.com:8080/
```

But that didn't work either.

All my our other tools (Zabbix, Grafana, WikiJS) work just fine on reverse proxy Apache, not sure what's the deal with Jira not wanting to kick into work. Maybe an issue with Cloudflare?

Should Tomcat be listening on 443 instead of Apache??

```
ss -tulpn

Netid           State            Recv-Q            Send-Q                            Local Address:Port                       Peer Address:Port           Process                                                                                                                                                   

udp             UNCONN           3584              0                                  0.0.0.0%eth0:68                              0.0.0.0:*               users:(("wickedd-dhcp4",pid=892,fd=8))                                                                                                                   

udp             UNCONN           0                 0                                     127.0.0.1:323                             0.0.0.0:*               users:(("chronyd",pid=1448,fd=5))                                                                                                                        

udp             UNCONN           0                 0                                         [::1]:323                                [::]:*               users:(("chronyd",pid=1448,fd=6))                                                                                                                        

tcp             LISTEN           0                 128                                     0.0.0.0:22                              0.0.0.0:*               users:(("sshd",pid=13260,fd=3))                                                                                                                          

tcp             LISTEN           0                 10                                            *:8090                                  *:*               users:(("java",pid=27041,fd=45))                                                                                                                         

tcp             LISTEN           0                 100                                           *:8080                                  *:*               users:(("java",pid=4508,fd=121))                                                                                                                         

tcp             LISTEN           0                 128                                        [::]:22                                 [::]:*               users:(("sshd",pid=13260,fd=4))                                                                                                                          

tcp             LISTEN           0                 4096                                          *:80                                    *:*               users:(("httpd-prefork",pid=5470,fd=4),("httpd-prefork",pid=5469,fd=4),("httpd-prefork",pid=5468,fd=4),("httpd-prefork",pid=5467,fd=4),("httpd-prefork",pid=5466,fd=4),("httpd-prefork",pid=5452,fd=4))

tcp             LISTEN           0                 4096                                          *:443                                   *:*               users:(("httpd-prefork",pid=5470,fd=6),("httpd-prefork",pid=5469,fd=6),("httpd-prefork",pid=5468,fd=6),("httpd-prefork",pid=5467,fd=6),("httpd-prefork",pid=5466,fd=6),("httpd-prefork",pid=5452,fd=6))

tcp             LISTEN           0                 1                            [::ffff:127.0.0.1]:8000                                  *:*               users:(("java",pid=27041,fd=79))                                                                                                                         

tcp             LISTEN           0                 1                            [::ffff:127.0.0.1]:8005                                  *:*               users:(("java",pid=4508,fd=506))                                                                                                                         
```


Answers:
author: Mariano Edvardsson
body: My \`server.xml\` connector settings:

```
<Connector port="8080" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"

                   maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"

                   maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"

                   acceptCount="100" disableUploadTimeout="true" bindOnInit="false" secure="true" scheme="https"

                   proxyName="jira.mediasoft.com" proxyPort="443"/>

```


Tags: data-center

jira-data-center

jira-service-management

jira-service-management-server

server