Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- #listen 80 default_server;
- #listen [::]:80 default_server;
- listen 443 ssl;
- server_name somesite.com;
- #Certificate
- ssl_certificate /etc/nginx/ssl/some-cert.crt;
- #Private Key
- ssl_certificate_key /etc/nginx/ssl/privateKey_app.key;
- root /usr/share/nginx/html;
- # Load configuration files for the default server block.
- include /etc/nginx/default.d/*.conf;
- location / {
- }
- location /myapp/ {
- proxy_pass https://10.20.2.1:443/myapp/;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # kill cache
- sendfile off;
- add_header Last-Modified $date_gmt;
- add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
- if_modified_since off;
- expires off;
- etag off;
- }
- error_page 404 /404.html;
- location = /40x.html {
- }
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- }
Add Comment
Please, Sign In to add comment