Advertisement
Guest User

Untitled

a guest
Mar 15th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. root@noc /opt/noc# cat /usr/local/etc/nginx/nginx.conf
  2.  
  3. events { worker_connections 1024; }
  4.  
  5.  
  6.  
  7. worker_processes 2;
  8.  
  9. http {
  10. include mime.types;
  11. default_type application/octet-stream;
  12. sendfile on;
  13. keepalive_timeout 15;
  14. server {
  15. listen 80;
  16. server_name noc;
  17. location /media/ {
  18. alias /opt/noc/contrib/lib/django/contrib/admin/media/;
  19. gzip on;
  20. gzip_types text/css text/x-js;
  21. }
  22.  
  23. location /static/ {
  24. alias /opt/noc/static/;
  25. gzip on;
  26. gzip_types text/css text/x-js;
  27. }
  28.  
  29. location / {
  30. proxy_pass http://127.0.0.1:8000/;
  31. }
  32.  
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement