Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://community.atlassian.com/t5/Confluence-questions/Can-t-view-site-on-Mobile-browser-Redirects-to-many-times/qaq-p/1033424

https://unix.stackexchange.com/questions/492146/confluence-site-viewing-via-android-chrome-redirects-url-to-many-times-but-deskt

Confluence HTTPS:

NginX Config :

##GLOBAL SSL
ssl_certificate /etc/ssl/certs/ssl-bundle.crt;
ssl_certificate_key /etc/ssl/private/server.key;

##Jira
server {
       listen         80;
       server_name    www.freesoftwareservers.com;

       return         301 https://$server_name/;

}

server {
        listen 443 ssl;
        server_name www.freesoftwareservers.com

location / {

        proxy_pass              http://192.168.1.255:8081/;

        include                 /etc/nginx/proxy.conf;
    }
}

/etc/nginx/proxy.conf

proxy_redirect          off;
proxy_set_header        Host            $host;
proxy_set_header        X-Real-IP       $remote_addr;
proxy_set_header        X-Forwarded-Server $host;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size    10m;
client_body_buffer_size 128k;
proxy_connect_timeout   90;
proxy_send_timeout      90;
proxy_read_timeout      90;
proxy_buffers           32 4k;

TomCat (Confluence) Config:

nano /opt/atlassian/confluence/conf/server.xml && service confluence restart

I used to make a second connector in case my proxy broke, you can just access via IP:8090 if needed vs proxyname:8090

<Server port="8000" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Standalone">
        <!--
         =================================================================================$
         DEFAULT - Direct connector with no proxy, for unproxied HTTP access to Confluence.

         If using a http/https proxy, comment out this connector.
         =================================================================================$
        -->

<Connector port="8090"
       maxThreads="200"
       minSpareThreads="25"
       connectionTimeout="20000"
       enableLookups="false"
       maxHttpHeaderSize="8192"
       protocol="HTTP/1.1"
       useBodyEncodingForURI="true"
       redirectPort="8443"
       acceptCount="100"
       disableUploadTimeout="true"
       scheme="https"
       proxyName="www.freesoftwareservers.com"
       proxyPort="443"/>

  • No labels