getting ssl to work #303

Open
opened 2025-07-07 06:19:01 +00:00 by FistandantilusDD · 1 comment
FistandantilusDD commented 2025-07-07 06:19:01 +00:00 (Migrated from github.com)

Hi,

I have setup nginx on ESXi via Proton. http is running fine. Now I´d like to enable ssl.

In the conf/nginx file I have stored my selfcigned certificate together with nginx-site.conf and nginx-site-sll.conf

In nginx-site.conf I am forwarding all traffic to https:

`# HTTP server block (port 80) to redirect to HTTPS (port 443)
server {
listen 80;
server_name 192.168.1.103;

# Redirect all traffic to HTTPS
return 301 https://$host$request_uri;

}`

So far ok and working.

My nginx-site-ssl.conf looks that way:

`server {
listen 443 ssl;
server_name 192.168.1.103;

ssl_certificate nginx-selfsigned.crt;
ssl_certificate_key nginx-selfsigned.key;

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;

root /var/www/html;  # Path to application files

location / {
    try_files $uri $uri/ =404;
}`

But it is not working and also in the log I don´t see any entries. Am I doing anything wrong? In the browser I am only getting:

Firefox: " connection failed."
Chrome: "Website cannot be reached" ERR_CONNECTION_REFUSED

Hi, I have setup nginx on ESXi via Proton. http is running fine. Now I´d like to enable ssl. In the conf/nginx file I have stored my selfcigned certificate together with nginx-site.conf and nginx-site-sll.conf In nginx-site.conf I am forwarding all traffic to https: `# HTTP server block (port 80) to redirect to HTTPS (port 443) server { listen 80; server_name 192.168.1.103; # Redirect all traffic to HTTPS return 301 https://$host$request_uri; }` So far ok and working. My nginx-site-ssl.conf looks that way: `server { listen 443 ssl; server_name 192.168.1.103; ssl_certificate nginx-selfsigned.crt; ssl_certificate_key nginx-selfsigned.key; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; root /var/www/html; # Path to application files location / { try_files $uri $uri/ =404; }` But it is not working and also in the log I don´t see any entries. Am I doing anything wrong? In the browser I am only getting: Firefox: " connection failed." Chrome: "Website cannot be reached" ERR_CONNECTION_REFUSED
FistandantilusDD commented 2025-07-08 15:20:22 +00:00 (Migrated from github.com)

Issues is solve! I put everything into the nginx-site-ssl.conf and now the ssl connection is established!

Issues is solve! I put everything into the nginx-site-ssl.conf and now the ssl connection is established!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ric/nginx-php-fpm#303
No description provided.