123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- # For more information on configuration, see:
- # * Official English Documentation: http://nginx.org/en/docs/
- # * Official Russian Documentation: http://nginx.org/ru/docs/
- user nginx;
- worker_processes auto;
- error_log /var/log/nginx/error.log;
- pid /run/nginx.pid;
- # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
- include /usr/share/nginx/modules/*.conf;
- events {
- worker_connections 1024;
- }
- http {
- 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 /var/log/nginx/access.log main;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- client_max_body_size 50M;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- # Load modular configuration files from the /etc/nginx/conf.d directory.
- # See http://nginx.org/en/docs/ngx_core_module.html#include
- # for more information.
- include /etc/nginx/conf.d/*.conf;
- server {
- server_name hichinatravel.com;
- rewrite ^(.*) http://www.hichinatravel.com$1 permanent;
- }
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name _;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
- location / {
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name www.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host hichinatravel.com;
- proxy_pass http://127.0.0.1:8765;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name elastic.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host elastic.hichinatravel.com;
- proxy_cookie_domain elastic.hichinatravel.com $host;
- sub_filter "elastic.hichinatravel.com" $host;
- proxy_pass http://127.0.0.1:9200;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name kibana.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host kibana.hichinatravel.com;
- proxy_cookie_domain kibana.hichinatravel.com $host;
- sub_filter "kibana.hichinatravel.com" $host;
- proxy_pass http://127.0.0.1:5601;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name admin-qa.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host admin-qa.hichinatravel.com;
- proxy_cookie_domain admin-qa.hichinatravel.com $host;
- sub_filter "admin-qa.hichinatravel.com" $host;
- proxy_pass http://127.0.0.1:9051;
- }
- location /service {
- rewrite /service(.*) $1 break;
- proxy_pass http://127.0.0.1:9050;
- proxy_redirect off;
- proxy_set_header Host admin-qa.hichinatravel.com;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name qa.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host qa.hichinatravel.com;
- proxy_pass http://127.0.0.1:9053;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name mayan.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host mayan.hichinatravel.com;
- proxy_pass http://127.0.0.1:85;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name photoprism.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host photoprism.hichinatravel.com;
- proxy_pass http://127.0.0.1:2342;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name git.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host git.hichinatravel.com;
- proxy_pass http://127.0.0.1:3001;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- server {
- listen 80;
- server_name wiki.hichinatravel.com;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
-
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host wiki.hichinatravel.com;
- proxy_pass http://127.0.0.1:3000;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
-
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- }
- # Settings for a TLS enabled server.
- #
- # server {
- # listen 443 ssl http2 default_server;
- # listen [::]:443 ssl http2 default_server;
- # server_name _;
- # root /usr/share/nginx/html;
- #
- # ssl_certificate "/etc/pki/nginx/server.crt";
- # ssl_certificate_key "/etc/pki/nginx/private/server.key";
- # ssl_session_cache shared:SSL:1m;
- # ssl_session_timeout 10m;
- # ssl_ciphers PROFILE=SYSTEM;
- # ssl_prefer_server_ciphers on;
- #
- # # Load configuration files for the default server block.
- # include /etc/nginx/default.d/*.conf;
- #
- # location / {
- # }
- #
- # error_page 404 /404.html;
- # location = /40x.html {
- # }
- #
- # error_page 500 502 503 504 /50x.html;
- # location = /50x.html {
- # }
- # }
- }
|