Question

Ubuntu NGINX Problems

  • Posted October 28, 2013

I posted on stackexchange something about this, because I had droplet troubles… http://serverfault.com/questions/549064/nginx-ssl-certificate-not-working

Hopefully you guys can reply here… :)

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

<code>listen 443 ssl;</code> should work fine. <br> <br><blockquote>The log said something like port not available or something along those lines.</blockquote> <br>That doesn’t help at all. Paste the log. <br> <br>Also, what’s the output of <pre>sudo netstat -plutn</pre>?

Try dropping the <code>ssl</code> tag; so the line reads <code>listen 443;</code>.

I did… <br> server { <br> listen 443 ssl;

It prob. said that b/c you had not told Nginx to listen on Port 443 in your previous config. file.

The log said something like port not available or something along those lines.

It’s most likely already installed. You can check if it’s there by running <code>nginx -V</code>. <br> <br>How did you know that port 443 is blocked? <br>

Did you restart nginx after installing the config file I put together for ya?

Nothing is… I didn’t know about SSL module! <br> <br>How would I install it?

Adding on <strong>Is Nginx listening on Port 443?</strong> <br> <br>To find out if there is anything is listening on port 443, run the following command: <br> <br><pre>sudo netstat -plutn | grep :443</pre>

How were you able to establish that “Port 443 is being denied?” There’s a difference b/w a port being blocked and no program (i.e. Nginx) simply listening on a port. <br> <br>Did you ever install the Nginx <a href=“http://wiki.nginx.org/Modules”>SSL module</a>? Is Nginx listening on Port 443?