diff --git a/README.md b/README.md index ed2afdf..6e08f0c 100644 --- a/README.md +++ b/README.md @@ -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 :