Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name real.domain.net;
- access_log /var/log/nginx/domain.access.log;
- error_log /var/log/nginx/domain.error.log;
- client_max_body_size 100m;
- location / {
- proxy_pass http://internal.network.net:4080;
- proxy_redirect off;
- proxy_buffering off;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- }
- #server {
- # listen 80;
- # return 301 https://$host$request_uri;
- #}
- server {
- listen 443;
- server_name real.domain.net;
- ssl_certificate /etc/nginx/ssl/nginx.crt;
- ssl_certificate_key /etc/nginx/ssl/nginx.key;
- ssl on;
- ssl_session_cache builtin:1000 shared:SSL:10m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
- ssl_prefer_server_ciphers on;
- access_log /var/log/nginx/real.domain.net.access.log;
- error_log /var/log/nginx/real.domain.net.error.log;
- client_max_body_size 100m;
- location / {
- proxy_set_header Host $host;
- 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 X-Forwarded_Proto https;
- # Fix the �^�^�It appears that your reverse proxy set up is broken" error.
- proxy_pass http://internal.network.net:4080;
- proxy_read_timeout 90;
- proxy_redirect http://internal.network.net:4080 https://real.domain.net;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement