Created
August 27, 2010 12:08
-
-
Save krikulis/553235 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream ssl.mydomain.org { | |
server 192.168.77.10:80; | |
server 192.168.77.20:80; | |
server 192.168.77.30:80; | |
} | |
server { | |
server_name ssl.mydomain.org; | |
access_log logs/sslacc.log main; | |
root /sslroot/public_html/; | |
index index.html index.htm; | |
ssl on; | |
ssl_certificate /certs/certificate.crt; | |
ssl_certificate_key /keys/private.key; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-FORWARDED_PROTO https; | |
proxy_redirect false; | |
if (!-f $request_filename) { | |
proxy_pass http://ssl.mydomain.org; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment