Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. user root root;
  2.  
  3. events {
  4. worker_connections 1024;
  5. }
  6.  
  7. http {
  8. include mime.types;
  9. default_type application/octet-stream;
  10.  
  11. sendfile on;
  12.  
  13. keepalive_timeout 65;
  14.  
  15. gzip on;
  16.  
  17. server {
  18. listen 80;
  19. server_name localhost;
  20.  
  21. root /var/www;
  22. index index.html index.htm;
  23.  
  24. satisfy any;
  25. allow 198.18.0.2/32;
  26. location / {
  27. proxy_set_header Host $http_host;
  28. proxy_set_header X-Real-IP $remote_addr;
  29. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  30. proxy_set_header X-Forwarded-Proto $scheme;
  31. proxy_pass http://127.0.0.1:8000/;
  32. }
  33. location /static/ {
  34. alias /var/www/appstore-client/static/;
  35. }
  36. location ^~ /advanced {
  37. alias /var/www/oldrobotwebpage;
  38. }
  39. location /libs {
  40. root /var/www;
  41. }
  42. location ^~ /libs/qimessaging/1.0/qimessaging.js {
  43. auth_pam "Secure Zone";
  44. auth_pam_service_name "nginx";
  45. }
  46. location ^~ /libs/qimessaging/1.0/socket.io/ {
  47. rewrite /libs/qimessaging/1.0/socket.io/(.*) /socket.io/$1 break;
  48. proxy_pass http://127.0.0.1:8002;
  49. proxy_http_version 1.1;
  50. proxy_set_header Upgrade $http_upgrade;
  51. proxy_set_header Connection "upgrade";
  52. proxy_set_header Host $host;
  53. }
  54. location ~ /apps/.*/html/?.* {
  55. root /var/www;
  56. }
  57. location ^~ /apps {
  58. rewrite ^(/apps/[a-zA-Z0-9_.-]*)(/.*)$ /$1/html$2 break;
  59. }
  60. location ^~ /services {
  61. include /etc/nginx/fastcgi_params;
  62. fastcgi_pass unix:/var/run/fcgi-nao.sock;
  63. fastcgi_param SCRIPT_NAME /django-fcgi;
  64. }
  65. }
  66. }
  67.  
  68. error_log /var/log/nginx/error.log debug;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement