My domain is: fitplans.co.uk
I have successfully installed lets encrypt ssl on my site.
My server is on LEMP stack (linux, ngnix, mysql, php)
Everything is ok for now but the problem is when i install webmin it is running on different port,
How can i use that port with SSL ??
I tried to edit /etc/nginx/sites-enabled/fitplans.co.uk with this configuration
server {
server_name fitplans.co.uk www.fitplans.co.uk;
root /usr/share/webmin;
index.cgi;
listen 10000 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/fitplans.co.uk/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/fitplans.co.uk/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
But it failed to start the server.
I am a noob, so please tell me how can i implement ssl to 10000 port ?