summaryrefslogtreecommitdiff
path: root/nginx-notes.txt
blob: 1e4ac3caf5c4e4eb8a5a1335edbd4af79ce3decc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Manga images require some weird nginx stuff.

    upstream django {
        server 127.0.0.1:8000;
    }

    server {
        listen 80;
        root /var/www/empty;

        location / {
            proxy_pass http://django;
            proxy_redirect default;
        }

        lecation /im_static/ {
            alias /home/nick/manga-reader/manga_data/;
        }
    }

Then in manga_data/ you need to make a symlink to itself:
    $ ln -s ../manga_data ./im_static

This works, but is in no way ideal.  Setting up static images on a subdomain
would be *much* better.