Add the Apache vhost configuration

This commit is contained in:
smagnin 2018-12-22 14:20:06 +01:00
parent c7df6d929c
commit 3ebfa5da8a

View file

@ -30,8 +30,6 @@ Then:
# git clone https://0xacab.org/jvoisin/mat2-web.git
# mkdir ./mat2-web/uploads/
# chown -R www-data:www-data ./mat2-web
# service uwsgi start
# service nginx start
```
Since uwsgi isn't fun to configure, feel free to slap this into your
@ -68,6 +66,25 @@ location @yourapplication {
}
```
If you prefer to use Apache:
```
apt install apache2 libapache2-mod-proxy-uwsgi
```
and add this to your `/etc/apache2/sites-enabled/mat2-web` in the `virtualhost` block:
```Apache
ProxyPass / unix:/var/www/mat2-web/mat2-web.sock|uwsgi://localhost/
```
Now restart your webserver (nginx or apache) and uswgi
```
systemctl restart uwsgi
systemctl restart nginx
```
It should now be working.
# Licenses