Skip to content

Instantly share code, notes, and snippets.

@crackcomm
Created June 14, 2011 22:06
Show Gist options
  • Save crackcomm/1026043 to your computer and use it in GitHub Desktop.
Save crackcomm/1026043 to your computer and use it in GitHub Desktop.
/etc/nginx/sites-enabled/media.filmybezlimitu.org
server {
listen 80;
server_name media.filmybezlimitu.org;
access_log /var/log/nginx/media.filmy.access.log;
location / {
root /srv/filmy/app/webapp/media;
index index.html index.htm;
}
location /static/admin {
root /srv/filmy/venv/lib/python2.6/site-packages/django/contrib/admin/media/;
}
error_page 404 /srv/filmy/app/webapp/templates/404.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment