Why can't delete domain from the project?

May 15, 2019 362 views
DNS DigitalOcean Apache Ubuntu 18.04

I can’t delete domain from my project and also can’t access to it, when access it say “Looks like something went wrong…”.

3 comments
  • I’m having the same problem; it appears that the server accepting the deletion requests is down, like, I keep getting 500 errors from the api server after clicking the ‘confirm delete’ button

  • Hiya @mokpost7 @josers, are you still seeing this issue?

  • @MattIPv4 I am having the same issue, it is also saying “DNS domain is currently in use by a Let’s Encrypt certificate, deleting this domain would prevent the Let’s Encrypt certificate renewal.”

1 Answer

Hi @mokpost7,

Firstly make sure you have the correct DNS for your Domain. To do so ping your domain in your cmd/terminal like

ping domain.com
ping www.domain.com

Make sure the IP is the one of your droplet.

Once you have confirmed it’s correct, you can turn your attention to your server. Make sure you’ve configured a proper Apache configuration file for the domain.

Creating the Virtual Host

Create a new virtual host .conf file in the Apache configuration directory:

nano /etc/httpd/yourdomain.com.conf

Structure of yourdomain.com.conf file should be like:

<VirtualHost *:80>
    ServerName www.yourdomain.com
    ServerAlias yourdomain.com
    DocumentRoot /var/www/yourdomain.com/public_html
    ErrorLog /var/www/yourdomain.com/error.log
    CustomLog /var/www/yourdomain.com/requests.log combined
</VirtualHost>

Basically, we tell Apache that we will use 80 port for the communication and that yourdomain.com is the name of this virtual host. Additionally, we specify directories for the website files (document root) and error logs.

In order for these changes to take effect, restart the Apache by executing this command:

service httpd restart

or

systemctl restart httpd.service

Once you’ve done all of the above let me know if you are still experiencing the issues.

Kind regards,
Kalin

Have another answer? Share your knowledge.