Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davlord/docker-apache-modules
Dockerized apache with mod_proxy_ajp enabled.
https://github.com/davlord/docker-apache-modules
Last synced: 25 days ago
JSON representation
Dockerized apache with mod_proxy_ajp enabled.
- Host: GitHub
- URL: https://github.com/davlord/docker-apache-modules
- Owner: davlord
- Created: 2018-08-07T20:35:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T20:41:25.000Z (almost 6 years ago)
- Last Synced: 2023-10-28T21:32:23.078Z (about 1 year ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-apache-modules
Dockerized Apache 2 with ability to enable modules on runtime## Configuration
### Environment Variables
#### A2ENMOD
Will allow you to enable multiple apache modules (coma separated).
```
A2ENMOD=proxy,proxy_ajp
```
It will trigger a a2enmod command as provided in Debian based distributions.## Examples
### Docker Compose with Proxy AJP module
Example `docker-compose.yml` file:
```bash
apache:
image: davlord/apache-ajp
volumes:
- ./logs:/var/log/apache2/
- ./mysite.conf:/etc/apache2/sites-enabled/mysite.conf:ro
environment:
- A2ENMOD=proxy,proxy_ajp
ports:
- "80:80"
tomcat:
image: tomcat
container_name: tomcat
expose:
- "8009"
```
Where `mysite.conf` could be :
```bashServerName www.mydomain.com
ServerAlias mydomain.comProxyRequests Off
ProxyPreserveHost OnProxyPass / ajp://tomcat:8009/
ProxyPassReverse / ajp://tomcat:8009/LogLevel warn
ErrorLog /var/log/apache2/mydomain.com-error.log
CustomLog /var/log/apache2/mydomain.com-access.log combined
ServerSignature Off```