Setting up 8443 to 443

Tameika Reed December 7, 2015

How can I change 8443 to redirect to 443.? I have followed the documentation and its still not working.

3 answers

1 accepted

1 vote
Answer accepted
Guilherme V.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 8, 2015

Hey Tameika,

On the server.xml, try the following parameters:

<Server port="8000" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Standalone">
        <Connector port="8090" connectionTimeout="20000" redirectPort="443"
                maxThreads="200" minSpareThreads="10"
                enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" />
        <Engine name="Standalone" defaultHost="localhost" debug="0">
            <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
                <Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
                    <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
                    <Manager pathname="" />
                </Context>
            </Host>
        </Engine>
        <!--
            To run Confluence via HTTPS:
             * Uncomment the Connector below
             * Execute:
                 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
                 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
               with a password value of "changeit" for both the certificate and the keystore itself.
             * Restart and visit https://localhost:8443/
             For more info, see https://confluence.atlassian.com/display/DOC/Running+Confluence+Over+SSL+or+HTTPS
        -->

        <Connector port="443" maxHttpHeaderSize="8192"
                   maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                   enableLookups="false" disableUploadTimeout="true"
                   acceptCount="100" scheme="https" secure="true"
                   clientAuth="false" sslProtocol="TLS" SSLEnabled="true"
                   URIEncoding="UTF-8" keystorePass="changeit"
                   keystoreFile="<keystoreLocation_path>"/>

 

The SSL will be set in Tomcat with this configuration, and not in Apache so you don't have to edit anything in mod_proxy or mod_ssl.

Cheers,

Tameika Reed December 9, 2015

So if I want to set this in Apache I know I would have to set the certfile in the ssl.conf file. But then I would also have to do the following correct: <VirtualHost *:443> ServerName confluence ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> #SSLEngine on #SSLProxyEngine On ProxyPreserveHost On ProxyPass "/" "https://confluence:8443/"; ProxyPassReverse "/" "https://confluence:8443"; DocumentRoot /var/www <Directory /var/www> Options -Indexes Order allow,deny Allow from all </Directory> </VirtualHost>

0 votes
Tameika Reed December 7, 2015

I am following this as documentation

https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html

SSLEngine On errors out on Centos 7.2

mod_ssl is installed and mod_proxy

So that could be a problem because maybe SSLEngine needs be on

 

I have another one that I am looking at but I have the weblink at work

 

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 7, 2015

What documentation, and how are you doing this?  There are a number of ways to do it - proxies, Tomcat settings and firewall rules are the most common, but which one are you using?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events