By aijazlondon
I facing a problem to migrate the Magento site. My site works well with droplet IP but does not redirect domain in which I added DNS both Namecheap & digital ocean account also check whatsmydns.net I also updated /etc/apache2/sites-available/000-default.conf file with following VirtualHost using this guide:
<VirtualHost *:80> ServerAdmin example@email.com ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /var/www/html/ ErrorLog ${APACHELOGDIR}/error.log CustomLog ${APACHELOGDIR}/access.log combined </VirtualHost>
But still no hope. I can not figure out what I am missing, or it’s just a technical problem with DigitalOcean or my Droplet.
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!
Hello, @aijazlondon
Keep in mind that DNS changes might take up some time in order to fully update. You can double-check that the DNS records are correct using our DNS Lookup
https://www.digitalocean.com/community/tools/dns
An example Virtual host block is:
The virtual host look fine, you can just check if the Apache server is running and listening on port 80 using netstat:
- netstat -tulpn | grep 80
To check if Apache is running:
- systemctl status apache2
Regards, Alex
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.