server { listen 8000 ssl; listen [::]:8000 ssl; server_name 133.96.95.30, 172.16.107.4, localhost; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; ssl_session_timeout 1h; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; server_tokens off; #access_log /var/log/nginx/host.access.log main; # minio location /house-car/oss { proxy_pass http://172.16.107.4:39000; } # 不动产资源地图接口 location /house-car/house/resource-map/api { proxy_pass http://172.16.107.4:39201; } # 不动产资源地图页面 location /house-car/house/resource-map { rewrite ^/house-car/house/resource-map/(.*)$ /$1 break; proxy_pass http://172.16.107.4:39201; } # 不动产报告页面接口 location /house-car/house/report/api { proxy_pass http://172.16.107.4:39202; } # 不动产报告页面 location /house-car/house/report { rewrite ^/house-car/house/report/(.*)$ /$1 break; proxy_pass http://172.16.107.4:39202; } # 车辆报告页面接口 location /house-car/car/report/api { proxy_pass http://172.16.107.4:39203; } # 车辆报告报告页面 location /house-car/car/report { rewrite ^/house-car/car/report/(.*)$ /$1 break; proxy_pass http://172.16.107.4:39203; } # 不动产系统 location /house-car/house/dist/ { proxy_pass http://172.16.107.4:39089/house/dist/; } #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 /usr/share/nginx/html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }