Report this

What is the reason for this report?

Virtualhost appear instead of my wordpress

Posted on February 15, 2021

Hello people. Hope you can help me, my name is Camilo, from CL.

As I was following through the tutorial (https://www.digitalocean.com/community/tutorials/como-proteger-apache-con-let-s-encrypt-en-ubuntu-18-04-es), I tried to install SSL certificate for my domain.

I did every step that is pointed in the tutorial, but at the end, I opened my domain and the main page shows me “Welcome to zitaparts.cl! Success! The zitaparts.cl virtual host is working!” (obviously I wrote that creating virtual host). You can check this --> https://zitaparts.cl

But, the main issue here is I can’t access to my wordpress site for my business, and less important, I don’t know if I did properly the install of SSL Certificate.

Just want to revert everything or put the right code to show my wordpress instead host virtual

Best !



This textbox defaults to using Markdown to format your 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.

Hello, @zitachile

At the moment the site is secured with a Let’s Encrypt SSL certificate. What you need to do is to update the document root for the domain name in the virtual host and point it to the WordPress installation directory.

You can open the virtual hosts file with any text editor and edit the DocumentRoot path to match the directory of the WordPress install.

  1. nano /etc/apache2/sites-available/your_domain.conf

And then alter this line:

DocumentRoot /var/www/your_domain

once this is done you can save the file and then check the Apache configuration for any syntax errors:

  1. sudo apache2ctl configtest

You should see the following output:

Syntax OK

Restart Apache to implement your changes:

  1. sudo systemctl restart apache2

Your domain should now be loading the WordPress installation when visited.

Hope that this helps! Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.