Report this

What is the reason for this report?

magento 2.3: site work in IP but not redirect domain

Posted on September 1, 2021

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!

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.

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:

  1. netstat -tulpn | grep 80

To check if Apache is running:

  1. systemctl status apache2

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.