mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-12 19:22:21 -04:00
Merge branch 'master' into 'master'
Add the Apache vhost configuration See merge request jvoisin/mat2-web!1
This commit is contained in:
commit
cfeaef897e
1 changed files with 19 additions and 2 deletions
21
README.md
21
README.md
|
@ -30,8 +30,6 @@ Then:
|
||||||
# git clone https://0xacab.org/jvoisin/mat2-web.git
|
# git clone https://0xacab.org/jvoisin/mat2-web.git
|
||||||
# mkdir ./mat2-web/uploads/
|
# mkdir ./mat2-web/uploads/
|
||||||
# chown -R www-data:www-data ./mat2-web
|
# 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
|
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.
|
It should now be working.
|
||||||
|
|
||||||
# Licenses
|
# Licenses
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue