I am following this tutorial https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04 and after I followed the steps and went to my website it was gone. I tried to log into the WordPress admin panel and the webpage and got a 403 error. I realized I forgot to add domain.com (the .com part) so I repeated the steps. Now I get “Success! The your_domain virtual host is working!” when I go to domain.com, instead of my wordpress site I built. What happened to my website!?
I don’t know what to do help would be really appreciated.
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.
Hi there @vinnyp96,
Can you share the content of your Apache virtual host? To do that you could first find the file with the following command
There you should see 2 files associated with your domain name, one for your SSL Vhost and one for the non-SSL Vhost.
Then use the
cat
command to display the content:Feel free to share the output here.
Also please check your Apache error log with the following command:
Regards, Bobby
To add one going to www.domain.com all I see is “Success! The your_domain virtual host is working!”
Before I tried adding SSL and did all these steps, going to http://IP-address/wp-admin/ resulted in a WordPress login page and then I could edit my website. Now I get:
Hi @bobbyiliev,
Also to add on: going to www.<domain>.com I get:
Going to http://<IP>/wp-admin/ I used to be able to login to Wordpress and edit my site, now I get:
Hi @bobbyiliev I appreciate your help!
output to
ls -lah /etc/apache2/sites-enabled
:output for
sudo cat /etc/apache2/sites/enabled/your-domain.conf
: -there was no sites/ so went into sites-enabled/error.log was empty.
Thanks!