vansanblch

Untitled

Jun 21st, 2013
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
COBOL 1.91 KB | None | 0 0
  1. #user  nobody;
  2. worker_processes  1;
  3.  
  4. #error_log  logs/error.log;
  5. #error_log  logs/error.log  notice;
  6. #error_log  logs/error.log  info;
  7.  
  8. #pid        logs/nginx.pid;
  9.  
  10.  
  11. events {
  12.     worker_connections  1024;
  13. }
  14.  
  15.  
  16. http {
  17.     include       mime.types;
  18.     default_type  application/octet-stream;
  19.  
  20.     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  21.                       '$status $body_bytes_sent "$http_referer" '
  22.                       '"$http_user_agent" "$http_x_forwarded_for"';
  23.  
  24.     access_log  logs/access.log  main;
  25.  
  26.     sendfile        on;
  27.     tcp_nopush     on;
  28.     tcp_nodelay    on;
  29.     keepalive_timeout 75 20;
  30.  
  31.     server {
  32.         listen       80;
  33.  
  34.         server_name  localhost fpdownload.adobe.com;
  35.         index index.html index.htm index.php;
  36.         root d:/omega/kiosk-api/web;
  37.        
  38.         charset utf-8;
  39.  
  40.         location = /favicon.ico { access_log off; log_not_found off; }
  41.         location = /robots.txt { access_log off; log_not_found off; }
  42.         location = /apple-touch-icon.png { access_log off; log_not_found off; }
  43.         location = /apple-touch-icon-precomposed.png { access_log off; log_not_found off; }
  44.        
  45.         location ~ /\. { deny  all; access_log off; log_not_found off; }
  46.  
  47.         location / {
  48.             try_files $uri $uri/ @apache;
  49.         }
  50.        
  51.         location @apache {
  52.             proxy_pass  http://127.0.0.1:8080;
  53.         }
  54.  
  55.         location ~ \.php$ {
  56.             proxy_pass   http://127.0.0.1:8080;
  57.         }
  58.        
  59.         location /pub {
  60.             root d:/omega/kiosk-api/web;
  61.             access_log off;
  62.         }
  63.        
  64.         location /files {
  65.             root d:/omega/kiosk-api/web;
  66.             expires 1w;
  67.             access_log off;
  68.             add_header Cache-Control "public";
  69.         }
  70.  
  71.         location /img {
  72.             root d:/omega/kiosk-api/web;
  73.             expires 1w;
  74.             access_log off;
  75.             add_header Cache-Control "public";
  76.         }
  77.  
  78.     }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment