123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- server {
- listen 80;
- server_name 121.40.93.243; #改成对应的HOST
- root /usr/share/nginx/html;
- #charset koi8-r;
- client_max_body_size 100m;
- #access_log logs/host.access.log main;
- # 开启代理缓冲区
- proxy_buffering on;
- # 响应头的缓冲区
- proxy_buffer_size 128k;
- # 网页内容缓冲区的个数为4,单个大小为1M
- proxy_buffers 8 1M;
- proxy_busy_buffers_size 2M;
- location / {
- root /usr/share/nginx/html;
- }
- location /api {
- proxy_pass http://crowd-backend-api;
- }
- location /page {
- proxy_pass http://crowd-user-api;
- }
- location ~ ^/(js|vendor|css|fonts|images)/.*$ {
- proxy_pass http://crowd-user-api;
- }
- location /var {
- root /;
- index index.html index.htm;
- }
- location /recommendationtest {
- proxy_pass http://59.42.10.54:7477;
- }
- #error_page 404 /404.html;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
- }
|