magento 2.3: site work in IP but not redirect domain

Posted September 1, 2021 153 views
Configuration ManagementDigitalOcean 1-Click Apps Marketplace

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>
DocumentRoot /var/www/html/
ErrorLog ${APACHELOGDIR}/error.log
CustomLog ${APACHELOGDIR}/access.log combined

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.

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.

Submit an Answer
1 answer

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:

  • netstat -tulpn | grep 80

To check if Apache is running:

  • systemctl status apache2