Skip to content

kohanyirobert/docker-compose-httpd-apache-proxy-tomcat-wildfly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-compose-httpd-apache-proxy-tomcat-wildfly

Simple docker-compose setup that starts an httpd server that proxies HTTP and HTTPS requests towards a tomcat or a wildfly server over AJP.

Example

Example configuration for a Debian-based Apache installation using Let's Encrypt.

<IfModule mod_ssl.c>
        <VirtualHost *:443>
                ServerName <DOMAIN>
                ServerAdmin webmaster@localhost
                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined
                SSLEngine on
                SSLCertificateFile      /etc/letsencrypt/live/<DOMAIN>/fullchain.pem
                SSLCertificateKeyFile /etc/letsencrypt/live/<DOMAIN>/privkey.pem
                ProxyRequests Off
                # Last slash is required!!!
                ProxyPass / ajp://localhost:8009/<CONTEXT_PATH>/
                ProxyPassReverse / ajp://localhost:8009/<CONTEXT_PATH>/
        </VirtualHost>
</IfModule>

<DOMAIN> is your domain name for which you have Let's Encrypt issued a certificate. <CONTEXT_PATH> is the context path of the web-application (don't forget that the closing slash).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published