First download NGINX Windows-1.4.1 from: http://nginx.org/en/download.html
(Remember to choose the stable version, as the Windows-1.5.1 crashes often on Windows XP SP3)
After successful installation of the nginx, you can start the balancer with:
start nginx
and shut it down with:
nginx -s stop
from the main directory of nginx (that's where nginx.exe resides).
The most important parts of the config file (nginx.conf) are:
listen 0.0.0.0:443;
ssl_certificate ssl/companypub.pem;
ssl_certificate_key ssl/companypriv.key;
proxy_pass http://127.0.0.1:80;
Both certificates are in PEM format. This configuration listens an all interfaces on port 443 and tunnels the traffic to its local HTTP server on port 80 (port 80 can be ignored in this case as it is the default port nginx would forward to).
You can download the configuration file along with sample certificate files here.
Tried this but I get this message in error.log and nginx quits. [alert] 16916#7728: the event "ngx_master_16916" was not signaled for 5s
ReplyDeleteSorry, didn't see the "Reply" link...
DeleteJust in case you miss my separate comment, try removing any password associated with ssl_certificate_key.
@Harley Do you have a password protecting your ssl_certificate_key? If so, remove the password and try again.
ReplyDeleteNo. I didn't have the password. That's not the solution unfortunately.
DeleteGreat write-up, I am a big believer in commenting on blogs to inform the blog writers Microleaves know that they’ve added something worthwhile to the world wide web!..
ReplyDeletef1l95m1p83 w3f90m2m42 y6l62h7w10 x0t27y9n70 v7s09h2a65 m4w96e6y44
ReplyDelete