Hey Guys -
I've been wanting to set up a reverse proxy on my home server for a while. After reading an article about it the other day, i decided to give it a shot. The article mentioned using Nginx so that's what I choose. Even though that's what I'm using, I don't think my issue is Nginx, itself...
There's really no installation as it's a command line tool, so I extracted it, ran it, and it worked. The only thing I needed to do extra was add SSL support. That's where the nightmare began.
When I try to start Nginx, I get the below error:
2014/12/29 15:27:20 [emerg] 52308#53176: BIO_new_file("C:
ginx-1.6.2\cert.crt") failed (SSL: error:0200107B:system library:fopen:Unknown error:fopen('C:
ginx-1.6.2\cert.crt','r') error:2006D002:BIO routines:BIO_new_file:system lib)
I then downloaded & installed OpenSSL x32 (even though I use Windows 8.1 x64) and added it's "bin" folder to my path, but it didn't change anything, I've also made a post on Nginx's forum
, but so far I haven't had any luck whatsoever.
When researching, I found out that there's a build of Nginx for Windows so downloaded it. it also already includes SSL configurations in it's config file instead of me having to manually add them. I made 3-4 changes to the conf file simply to specify the path/names of my certs. When I started it, I got the exact same error.
My cert is from GoDaddy and is tied to my home's public domain name. I also have a hosts entry in my router which forwards all local traffic to my home domain name to the local ip of my server which runs Windows 8.1 x64. I'm needing SSL as not only do I want to access the reverse proxy via HTTPS, but all the apps I'm forwarding to use SSL and require logins.
Note: I didn't generate the key file using OpenSSL, but with Windows. I did this a while back before I know I'd use OpenSSL. I have used OpenSSL commands to verify that the cert is good, though.
Any ideas? Thanks!