Advertisement
NamPNQ

Untitled

Aug 14th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. worker_processes 1;
  2.  
  3. events {
  4.  
  5. worker_connections 1024;
  6.  
  7. }
  8.  
  9. http {
  10.  
  11. sendfile on;
  12.  
  13. gzip on;
  14. gzip_http_version 1.0;
  15. gzip_proxied any;
  16. gzip_min_length 500;
  17. gzip_disable "MSIE [1-6]\.";
  18. gzip_types text/plain text/xml text/css
  19. text/comma-separated-values
  20. text/javascript
  21. application/x-javascript
  22. application/atom+xml;
  23.  
  24. # Configuration containing list of application servers
  25. upstream app_servers {
  26.  
  27. server 127.0.0.1:8080;
  28.  
  29. }
  30.  
  31. # Configuration for Nginx
  32. server {
  33.  
  34. # Running port
  35. listen 80;
  36.  
  37. # Settings to serve static files
  38. location ^~ /static/ {
  39.  
  40. # Example:
  41. # root /full/path/to/application/static/file/dir;
  42. root /home/memeplayer.com/memeplayer/static/;
  43.  
  44. }
  45.  
  46. # Proxy connections to the application servers
  47. # app_servers
  48. location / {
  49.  
  50. proxy_pass http://app_servers;
  51. proxy_redirect off;
  52. proxy_set_header Host $host;
  53. proxy_set_header X-Real-IP $remote_addr;
  54. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  55. proxy_set_header X-Forwarded-Host $server_name;
  56.  
  57. }
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement