https://github.com/docksal/service-apache
Apache service images for Docksal
https://github.com/docksal/service-apache
Last synced: over 1 year ago
JSON representation
Apache service images for Docksal
- Host: GitHub
- URL: https://github.com/docksal/service-apache
- Owner: docksal
- License: mit
- Created: 2016-09-27T14:20:52.000Z (almost 10 years ago)
- Default Branch: develop
- Last Pushed: 2022-04-06T23:55:10.000Z (over 4 years ago)
- Last Synced: 2024-04-13T21:54:55.491Z (about 2 years ago)
- Language: Shell
- Homepage: https://docksal.io
- Size: 74.2 KB
- Stars: 0
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apache Docker images for Docksal
This image(s) is part of the [Docksal](http://docksal.io) image library.
## Versions
- apache2.4 (based on http:2.4-alpine)
## Features
- SSL enabled (self-signed cert)
- PHP handling via FastCGI (`mod_proxy_fcgi`)
- HTTP Basic Authentication
- Support for configuration overrides
## Document root
Apache `DocumentRoot` for the default virtual host can be set via `APACHE_DOCUMENTROOT`environment variable
(defaults to `/var/www/docroot`).
## FastCGI server endpoint
These images are set up to work with a FastCGI server and will not start without one.
The FastCGI endpoint can be set via `APACHE_FCGI_HOST_PORT` environment variable (defaults to `cli:9000`).
## HTTP Basic Authentication
Use `APACHE_BASIC_AUTH_USER` and `APACHE_BASIC_AUTH_PASS` environment variables to set username and password.
Example with Docker Compose
```yaml
...
environment:
- APACHE_BASIC_AUTH_USER=user
- APACHE_BASIC_AUTH_PASS=password
...
```
## Configuration overrides
Configuration overrides can be added to a Docksal project codebase.
Use `.docksal/etc/apache/httpd-vhost-overrides.conf` to override the default virtual host configuration:
```apacheconfig
DirectoryIndex index2.html
```
Use `.docksal/etc/apache/httpd-vhosts.conf` to define additional virtual hosts:
```apacheconfig
ServerName docs.docksal.site
ProxyPass / http://docs.docksal.io/
ProxyPassReverse / http://docs.docksal.io/
```