magento 2.3: site work in IP but not redirect domain

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 I also updated /etc/apache2/sites-available/000-default.conf file with following VirtualHost using this guide:

<VirtualHost *:80> ServerAdmin ServerName ServerAlias 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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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:

  1. netstat -tulpn | grep 80

To check if Apache is running:

  1. systemctl status apache2

Regards, Alex