Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen 443 ssl http2;
- server_name test1.hotelinstinct.com;
- ssl_certificate /etc/letsencrypt/live/wildcard.hotelinstinct.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/wildcard.hotelinstinct.com/privkey.pem;
- if ($scheme = http) {
- return 301 https://test1.hotelinstinct.com$request_uri;
- }
- gzip on;
- gzip_http_version 1.1;
- gzip_comp_level 5;
- gzip_proxied any;
- gzip_min_length 100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css application/javascript application/json text/xml application/xml application/xml+rss t$
- gzip_disable "msie6";
- gzip_vary on;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://localhost:4701/;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $host;
- }
- }
- server {
- listen 80;
- listen 443 ssl http2;
- server_name test2.hotelinstinct.com;
- ssl_certificate /etc/letsencrypt/live/wildcard.hotelinstinct.com/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/wildcard.hotelinstinct.com/privkey.pem;
- if ($scheme = http) {
- return 301 https://test2.hotelinstinct.com$request_uri;
- }
- gzip on;
- gzip_http_version 1.1;
- gzip_comp_level 5;
- gzip_proxied any;
- gzip_min_length 100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css application/javascript application/json text/xml application/xml application/xml+rss t$
- gzip_disable "msie6";
- gzip_vary on;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- }
- gzip on;
- gzip_http_version 1.1;
- gzip_comp_level 5;
- gzip_proxied any;
- gzip_min_length 100;
- gzip_buffers 16 8k;
- gzip_types text/plain text/css application/javascript application/json text/xml application/xml application/xml+rss t$
- gzip_disable "msie6";
- gzip_vary on;
- location / {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Host $http_host;
- proxy_set_header X-NginX-Proxy true;
- proxy_pass http://localhost:4700/;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $host;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement