The Different between Root at Listen 80 and Listen 443

Hello Guys, May i know what is the different between both of root at Listen 80 and Listen 443? I have problem with access my HTTPS site. I got Error 404 if i set my 443 to On. My page is secure and the CA is active. (/var/www/ But my website can’t access. If i don’t activate my SSL, the website is fine but i have already setting my General Wordpress to change it’s url become Because of that i can’t acess it if i am not change my Listen into 443. (/var/www/

Am i miss something? Or am i make a mistake?

My step is :

  1. Initial setup Ubuntu.
  2. Install LEMP.
  3. Install Virtual Host.
  4. Install SSl.
  5. Install Wordpress.

Thank you, Frans W


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The main difference between 2 ports Listen 80 = HTTP = Non SSL Listen 443 = HTTPS = SSL

Please check the following tutorial and see if you missed something or not How To Install an SSL Certificate from a Commercial Certificate Authority

also you shouldn’t change url in your wordpress general settings to https. post your nginx virtual host file configuration to see if there’s something wrong.