Ssl only works doamin name not the rest

I use certbot and install the letsencrypt. I am using nginx on ubuntu 18.04. my domain name is test.mydomain.com. if I type http://test.mydomain.com or https://test.mydomain.com I can see the nginx default index.html

Also I use proxy_pass to send the data to my local dart server as;

 location /admin1 {
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $http_host;
        proxy_pass "http://127.0.0.1:8888";
        try_files $uri $uri/ =200;
    }

If I type http://test.mydomain.com/admin1 or https://test.mydomain.com/admin1 I get error as:

Failed to establish secure connection
An error occurred during connection to test.mydomain.com.
The page you are trying to view cannot be shown because the competence of the received data could not be verified.

why is my ssl is not working on redirecion?

Hi @NTMS2017

please share your domain name.

thanks JuergenAuer send you a message

Please just edit your original post to include your domain. This will allow you to get the best and fastest answer.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.