September 04, 2022 07:28PM

I'm pretty new to nginx but do have a server up and running. I've been
pulling my hair out over ssl setup though. I have read the docs on your
server and some others like the alpine site. The most recent attempt I
followed the video tutorial on your website. Whenever I try to connect
via ssl it hangs.  I hope someone here has some ideas because I don't
know where else to turn.

No errors show in the nginx logs.

I'm running Ubuntu 20.04. Nginx was installed following the instructions
on your website.

When I try to access with curl I get a response.
If I explicitly request https it hangs indefinitely. The
commands/responses are posted below.

Not sure if this matters but I have learned that dev domains try to
enforce https, so explicitly using http in a browser gui craps out no
matter what, but curl ignores this and serves you via http anyway. I
don't know if this matters but I thought I would mention it.

Here is my .conf file. I have not modified anything else from the
initial install.

server {
listen 80 default_server;
return 301 https://$server_name$request_uri;

server {
listen 443 ssl;

ssl_certificate /etc/nginx/ssl/;
ssl_certificate_key /etc/nginx/ssl/;

location / {
root /usr/share/nginx/html;
index index.html index.htm;
root@biscotty-lt:/etc/nginx/conf.d# curl -I
HTTP/1.1 301 Moved Permanently
Server: nginx/1.23.1
Date: Sun, 04 Sep 2022 21:05:01 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive

root@biscotty-lt:/etc/nginx/conf.d# curl -I

nginx mailing list --
To unsubscribe send an email to
Subject Author Posted

Trouble setting up SSL

biscotty September 04, 2022 07:28PM

Re: Trouble setting up SSL

Moshe Katz September 04, 2022 07:50PM

Re: Trouble setting up SSL

biscotty September 04, 2022 07:56PM

RE: Trouble setting up SSL

Thomas Ward September 04, 2022 08:12PM

Re: Trouble setting up SSL

biscotty September 04, 2022 08:26PM

Re: Trouble setting up SSL

biscotty September 04, 2022 08:04PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 104
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready