Skip to content

getting ssl to work #303

@FistandantilusDD

Description

@FistandantilusDD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions