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

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.

×
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

Submit an Answer