Overview
Documents installation and configuration of Nginx.
Details
Download the software and install as a Linux package.
Configure local virtual settings in the /etc/nginx. Here is a sample used for the UAT deployment:
server { server_name uat-mapping.ihtsdotools.org; listen 80; rewrite ^ https://$host$request_uri permanent; } server { server_name uat-mapping.ihtsdotools.org; listen 443 ssl; ssl_certificate /etc/ssl/certs/ihtsdotools.org.chained.crt; ssl_certificate_key /etc/ssl/private/ihtsdotools.org.key; location / { proxy_pass http://localhost:8080; 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 "https"; proxy_set_header X-Url-Scheme $scheme; proxy_redirect off; } }
References/Links