Commit 2a4445d7 authored by Michal Čihař's avatar Michal Čihař

Use alias instead of root in nginx config

parent c6f29500
......@@ -4,22 +4,22 @@ server {
root /path/to/weblate/weblate;
location /favicon.ico {
root /path/to/weblate/weblate/media;
alias /path/to/weblate/weblate/media/favicon.ico;
expires 30d;
}
location /media/ {
root /path/to/weblate/weblate;
alias /path/to/weblate/weblate/media/;
expires 30d;
}
location /robots.txt {
root /path/to/weblate/weblate/media;
alias /path/to/weblate/weblate/media/robots.txt;
expires 30d;
}
location /static/admin/ {
root /usr/local/lib/python2.7/dist-packages/django/contrib/admin;
alias /usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/;
expires 30d;
}
......
Markdown is supported
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