Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
- location / {
- proxy_pass http://172.16.0.115/;
- proxy_set_header X-Forwarded-For
- $proxy_add_x_forwarded_for;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header Host $host;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
- openssl req -x509 -new -newkey rsa:2048 -nodes -keyout private.key -out public.pem -days 750
- openssl req -x509 -new -newkey rsa:2048 -nodes -keyout private.key -out public.pem -days 750
- openssl pkcs12 -inkey private.key -in public.pem -export -out certificate.p12
- openssl pkcs12 -in certificate.p12 -noout -info
- ssl_certificate "/etc/ssl/public.pem";
- ssl_certificate_key "/etc/ssl/private.key";
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers HIGH:!aNULL:!MD5;
- access_log /var/log/nginx/ssl-access.log combined;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
- location / {
- proxy_pass https://172.16.0.115/;
- # Also tried proxy_pass https://172.16.0.115:443/;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement