diff options
| author | jvoisin | 2018-12-24 04:48:09 -0800 |
|---|---|---|
| committer | jvoisin | 2018-12-24 04:48:09 -0800 |
| commit | cfeaef897eb5dc24b35f30fad9fa3bfd370bcf20 (patch) | |
| tree | 0cc4f94a9b816a8edec7a30108ccb2e03cd5776f | |
| parent | c7df6d929ca5eb61be8c13d8d01ec38121471b52 (diff) | |
| parent | 3ebfa5da8abec2f5dd0d25cff8c0c8bd11e4ab6d (diff) | |
Merge branch 'master' into 'master'
Add the Apache vhost configuration
See merge request jvoisin/mat2-web!1
| -rw-r--r-- | README.md | 21 |
1 files changed, 19 insertions, 2 deletions
| @@ -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 | ||
| 37 | Since uwsgi isn't fun to configure, feel free to slap this into your | 35 | Since 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 | ||
| 69 | If you prefer to use Apache: | ||
| 70 | |||
| 71 | ``` | ||
| 72 | apt install apache2 libapache2-mod-proxy-uwsgi | ||
| 73 | ``` | ||
| 74 | |||
| 75 | and add this to your `/etc/apache2/sites-enabled/mat2-web` in the `virtualhost` block: | ||
| 76 | |||
| 77 | ```Apache | ||
| 78 | ProxyPass / unix:/var/www/mat2-web/mat2-web.sock|uwsgi://localhost/ | ||
| 79 | |||
| 80 | ``` | ||
| 81 | |||
| 82 | Now restart your webserver (nginx or apache) and uswgi | ||
| 83 | ``` | ||
| 84 | systemctl restart uwsgi | ||
| 85 | systemctl restart nginx | ||
| 86 | ``` | ||
| 87 | |||
| 71 | It should now be working. | 88 | It should now be working. |
| 72 | 89 | ||
| 73 | # Licenses | 90 | # Licenses |
