Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- <------>server_name noc;
- location /media/ {
- alias /opt/noc/contrib/lib/django/contrib/admin/static/;
- gzip on;
- gzip_types text/css text/x-js;
- }
- <------>location ~ ^/static/ {
- <------> root /opt/noc;
- <------> gzip on;
- <------> gzip_types text/css text/x-js;
- <------>}
- <------>location ~ ^/([^/]+)/([^/]+)/(js|css|img)/(.+)$ {
- <------> root /opt/noc/;
- <--> rewrite ^/([^/]+)/([^/]+)/(js|css|img)/(.+)$
- <--><------> /$1/apps/$2/$3/$4 break;
- gzip on;
- gzip_types text/css text/x-js;
- }
- location / {
- proxy_pass http://127.0.0.1:8000/;
- gzip on;
- gzip_types text/css text/x-js;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement