kpi-api/file/nginx.conf

172 lines
3.5 KiB
Nginx Configuration File
Raw Normal View History

worker_processes 1;
events {
worker_connections 10240;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off;
sendfile on;
keepalive_timeout 65;
client_max_body_size 500M;
client_body_buffer_size 128k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
server {
listen 8888;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location / {
root D:/deescloud/deesCloudWeb;
autoindex off;
index login.html;
add_header Cache-Control "no-cache";
add_header Pragma "no-cache";
expires off;
}
location /deescloud {
proxy_pass http://127.0.0.1:8880/deescloud;
}
location /file {
proxy_pass http://127.0.0.1:8881/file;
}
}
server {
listen 8891;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location / {
root D:/deescloud/kpi-web;
autoindex off;
index login.html;
add_header Cache-Control "no-cache";
add_header Pragma "no-cache";
expires off;
}
location /pkpi {
proxy_pass http://127.0.0.1:8884/pkpi;
}
location /file {
proxy_pass http://127.0.0.1:8885/file;
}
location /upload {
proxy_pass http://127.0.0.1:8886/upload;
}
}
server {
listen 8889;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location / {
root D:/deescloud/project-web;
autoindex off;
index login.html;
add_header Cache-Control "no-cache";
add_header Pragma "no-cache";
expires off;
}
location /pm {
proxy_pass http://127.0.0.1:8879/pm;
}
location /file {
proxy_pass http://127.0.0.1:8878/file;
}
}
server {
listen 8893;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location / {
root D:/deescloud/ma-web;
autoindex off;
index login.html;
}
location /u_ma {
proxy_pass http://127.0.0.1:8876/u_ma;
}
}
server {
listen 8892;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location / {
root D:/deescloud/pp-web;
autoindex off;
index login.html;
add_header Cache-Control "no-cache";
add_header Pragma "no-cache";
expires off;
}
location /pp {
proxy_pass http://127.0.0.1:8874/pp;
}
}
server {
listen 8873;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location / {
root D:/deescloud/ma-web-test;
autoindex off;
index login.html;
}
location /u_ma {
proxy_pass http://127.0.0.1:8872/u_ma;
}
}
}