diff options
| -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 |
