summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2018-12-24 04:48:09 -0800
committerjvoisin2018-12-24 04:48:09 -0800
commitcfeaef897eb5dc24b35f30fad9fa3bfd370bcf20 (patch)
tree0cc4f94a9b816a8edec7a30108ccb2e03cd5776f
parentc7df6d929ca5eb61be8c13d8d01ec38121471b52 (diff)
parent3ebfa5da8abec2f5dd0d25cff8c0c8bd11e4ab6d (diff)
Merge branch 'master' into 'master'
Add the Apache vhost configuration See merge request jvoisin/mat2-web!1
-rw-r--r--README.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/README.md b/README.md
index 4eaa8c2..9e4ba79 100644
--- a/README.md
+++ b/README.md
@@ -30,8 +30,6 @@ Then:
30# git clone https://0xacab.org/jvoisin/mat2-web.git 30# git clone https://0xacab.org/jvoisin/mat2-web.git
31# mkdir ./mat2-web/uploads/ 31# mkdir ./mat2-web/uploads/
32# chown -R www-data:www-data ./mat2-web 32# chown -R www-data:www-data ./mat2-web
33# service uwsgi start
34# service nginx start
35``` 33```
36 34
37Since uwsgi isn't fun to configure, feel free to slap this into your 35Since uwsgi isn't fun to configure, feel free to slap this into your
@@ -68,6 +66,25 @@ location @yourapplication {
68} 66}
69``` 67```
70 68
69If you prefer to use Apache:
70
71```
72apt install apache2 libapache2-mod-proxy-uwsgi
73```
74
75and add this to your `/etc/apache2/sites-enabled/mat2-web` in the `virtualhost` block:
76
77```Apache
78ProxyPass / unix:/var/www/mat2-web/mat2-web.sock|uwsgi://localhost/
79
80```
81
82Now restart your webserver (nginx or apache) and uswgi
83```
84systemctl restart uwsgi
85systemctl restart nginx
86```
87
71It should now be working. 88It should now be working.
72 89
73# Licenses 90# Licenses