Difference between revisions of "Nginx"
m (→Installation) |
(→See also: Installation on Debian) |
||
Line 44: | Line 44: | ||
*[http://serverfault.com/questions/18994/nginx-best-practices Nginx best practices] | *[http://serverfault.com/questions/18994/nginx-best-practices Nginx best practices] | ||
*[http://nginx.org/en/docs/http/configuring_https_servers.html Configuring Nginx HTTPS servers] | *[http://nginx.org/en/docs/http/configuring_https_servers.html Configuring Nginx HTTPS servers] | ||
+ | *[http://www.webhostingtalk.com/showthread.php?t=1025286 Installation on Debian] | ||
[[Category:Software]] | [[Category:Software]] |
Revision as of 18:16, 9 September 2012
NGiNX by all accounts is much more efficient than Apache, so we will probably start changing the OD server, and our server installation procedure over to NGiNX.
Installation
Self-signed SSL certificates
Nginx doesn't use the basic .pem files that can be used by Apache for self-signed certificates. We need to go through the following procedure to turn the pem into key and crt files.
First we need to create a private key. Note that this process will require a pass-phrase for the key - don't worry, we'll remove it later to make things easier,
Now we need to create a CSR (Certificate Signing Request):
Now we need to remove the pass-phrase otherwise it'll prevent the web-server from restarting without it being entered (you'll need to enter the pass-phrase to remove it though),
Now we can generate the actual certificate:
The relevant server section can now be updated in the nginx configuration,