#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80 default_server;
server_name vitro.example.ru;
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_pass_request_body on;
location / {
proxy_buffer_size 1M;
proxy_buffers 4 1M;
#proxying traffic to upstream application (Vitro.Server.Core.Web)proxy_read_timeout 1h;
proxy_send_timeout 1h;
proxy_pass http://127.0.0.1:4615;
proxy_read_timeout 1h;
proxy_send_timeout 1h;
proxy_buffering on;
proxy_cache STATIC;
proxy_cache_valid 200 1d;
proxy_cache_bypass $cookie_nocache $arg_nocache$arg_comment;
proxy_cache_bypass $http_pragma $http_authorization;
proxy_no_cache $cookie_nocache $arg_nocache$arg_comment;
proxy_no_cache $http_pragma $http_authorization;
proxy_cache_use_stale error timeout invalid_header updating
location / {
#proxying traffic to upstream application (Vitro.Server.Core.Web)
http_500 http_502 httpproxy_503pass http_504;
://127.0.0.1:4615;
}
location /workflow/manager {
proxy_pass http://localhost:4616/workflow/manager;
}
}
} |