By mokpost7
I can’t delete domain from my project and also can’t access to it, when access it say “Looks like something went wrong…”.
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.