1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
# Apache2
Apache2 is the reverse proxy that will be visible from the outside world.
This service is responsible for:
* forwarding http requests to [gunicorn](./lava-server-gunicorn.md)
* forwarding web socket requests to [lava-publisher](./lava-publisher.md)
* serving static files
* ssl termination
## Command line
This service is usually only manage via systemd.
## Service
The systemd service is called `apache2`.
## Dependencies
apache2 should be able to:
* open a socket on port `80`
* open a socket on port `443` (if configured)
## Configuration
The apache2 configuration is split in many files.
The configuration specific to lava is stored in
`/etc/apache2/sites-available/lava-server.conf`.
## Logs
The logs for thr lava-server virtual host are stored in
`/var/log/apache2/lava-server.log`
The log rotation is configured in `/etc/logrotate.d/apache2`.
## Security
TODO: should activate SSL
|