mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-12-24 17:42:23 +00:00
Working htaccess
This commit is contained in:
parent
47bf025145
commit
a52c9f5cb3
@ -68,8 +68,14 @@ Pour reverse-proxyfier le serveur derrière Apache, on place dans `~/www/.htacce
|
||||
|
||||
```apache
|
||||
RewriteEngine On
|
||||
|
||||
# UWSGI socket
|
||||
RewriteRule ^django.wsgi/(.*)$ unix:/home/c/club-med/django-med/uwsgi.sock|fcgi://localhost/ [P,NE,L]
|
||||
|
||||
# When not a file and not starting with django.wsgi, then forward to UWSGI
|
||||
RewriteCond %{REQUEST_URI} !^/django.wsgi/
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.*)$ unix:/home/c/club-med/django-med/uwsgi.sock|fcgi://localhost [P,NE,QSA,L]
|
||||
RewriteRule ^(.*)$ /django.wsgi/$1 [QSA,L]
|
||||
```
|
||||
|
||||
Pour servir les fichiers statiques, on crée un lien symbolique :
|
||||
|
Loading…
Reference in New Issue
Block a user