Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<VirtualHost 10.11.12.13:80>
ServerName documentation.example.com
ServerAliaS documentation
 
ProxyPreserveHost On
RewriteEngine on
# Redirect http traffic to https
RewriteRule ^/(.*)$ https://documentation.example.com/$1 [L,R]
</VirtualHost>
 
<VirtualHost 10.11.12.13:443>
ServerName documentation.example.com
 
ErrorLog /var/log/httpd/documentation.example.com-ssl_error_log
TransferLog /var/log/httpd/documentation.example.com-ssl_access_log
CustomLog /var/log/httpd/documentation.example.com-ssl_request_log ssl_combined
 
ProxyPreserveHost On
ProxyRequests Off
 
ProxyPass /synchrony  http://localhost:8091/synchrony
<Location /synchrony>
    Require all granted
    RewriteEngine on
    RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
    RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
    RewriteRule .* ws://localhost:8091%{REQUEST_URI} [P]
    RequestHeader unset Authorization
</Location>
 
 
ProxyPass / http://localhost:8090/ retry=2 acquire=3000 timeout=120 Keepalive=On
ProxyPassReverse / http://localhost:8090/
 
LogLevel info
 
Include conf.d/ssl.inc
 
</VirtualHost>

 

Very often multiple often, multiple applications run on the same server. Having SSL configuration in one place makes sense.

We like to include the following into VirtualHosts that should be configured wil with SSL Include conf.d/ssl.inc

...

Locate the connector in server.xml.

When the application is served by a proxy server behind SSL serves the application, changes to server.xml are required.

...