Setting up 8443 to 443
Asked by Tameika Reed:

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


Answers:
author: Guilherme V.
body: Hey Tameika,

On the server.xml, try the following parameters:

```
&lt;Server port="8000" shutdown="SHUTDOWN" debug="0"&gt;    &lt;Service name="Tomcat-Standalone"&gt;        &lt;Connector port="8090" connectionTimeout="20000" redirectPort="443"                maxThreads="200" minSpareThreads="10"                enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8" /&gt;        &lt;Engine name="Standalone" defaultHost="localhost" debug="0"&gt;            &lt;Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false"&gt;                &lt;Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"&gt;                    &lt;!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties --&gt;                    &lt;Manager pathname="" /&gt;                &lt;/Context&gt;            &lt;/Host&gt;        &lt;/Engine&gt;        &lt;!--            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        --&gt;        &lt;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="&lt;keystoreLocation_path&gt;"/&gt;
```

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,

comments: author: Tameika Reed
body: 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 confluenceProxyRequests Off\<Proxy \*\>Order deny,allowAllow from all\</Proxy\>#SSLEngine on#SSLProxyEngine OnProxyPreserveHost OnProxyPass "/" "[https://confluence:8443/"](https://confluence:8443/&quot);ProxyPassReverse "/" "[https://confluence:8443"](https://confluence:8443&quot);DocumentRoot /var/www\<Directory /var/www\>Options -IndexesOrder allow,denyAllow from all\</Directory\>\</VirtualHost\>


author: Tameika Reed
body: 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


author: Nic Brough -Adaptavist-
body: 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?


Tags: confluence-administration