Need help installing https for subdomains

Hi, I’m having a problem setting up https on the https://www.nexlesoft.com/ website. I followed Digital Ocean’s instructions at https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-14-04 and everything Works well as a guide. However, then I encountered a bug where my Portolio images were located at the subdomain portfolio-api.nexlesoft.com. And it was not displayed because I did not install https for the subdomain. (example https://portfolio-api.nexlesoft.com/img/portfolio/TravelSmart/TS-03.png not working, http://portfolio-api.nexlesoft.com/img/portfolio/TravelSmart/TS-03.png is good).
Now I think my job is to set up https for the website, however I have a question. Is Let Encrypt support subdomains ? and how will the installation statement be?
Previously I used the following command:" sudo certbot --apache -d example.com -d www.example.com "
I hope to get help from the community

If that worked before, "sudo certbot --apache -d nexlesoft.com -d portfolio-api.nexlesoft.com -d www.nexlesoft.com" should do it. :slightly_smiling_face:

That will tell Certbot to make a new certificate covering all 3 names, and save it in the same filenames as the old certificate.

I'm not sure how you made Apache redirect HTTP to HTTPS for the first two sites. If you edited the configuration to do that, you might want to repeat the same steps for portfolio-api.nexlesoft.com.

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