Gitlab CSE Unil

Commit 45e762cb authored by Julien Furrer's avatar Julien Furrer
Browse files

Changed versioning of apache config templates

parent e0336764
......@@ -11,3 +11,5 @@ adim_project/static/*
adim_project/apache.conf
adim_project/wsgi.py
adim_project/settings/local_settings.py
adim_project/apache.conf.tpl
\ No newline at end of file
......@@ -37,7 +37,7 @@
<IfModule xsendfile_module>
XSendFile On
</IfModule>
<Directory "{{ settings.MEDIA_ROOT }}ao_images/">
<Directory "{{ settings.MEDIA_ROOT }}/ao_images/">
Order allow,deny
Deny from all
</Directory>
......@@ -75,7 +75,7 @@
<IfModule rewrite_module>
RewriteEngine On
## Retourne une 404 pour media/protected au lien d'une 403
RewriteRule ^{{ settings.MEDIA_URL }}/ao_images/.*$ - [R=404,L,NS]
RewriteRule ^.*/ao_images/.*$ - [R=404,L,NS]
#RewriteCond %{REMOTE_ADDR} !^130.223.3.229$
#RewriteCond %{REQUEST_URI} !^/static/.*$
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment