Report this

What is the reason for this report?

Domain Name directs to the IP address

Posted on May 5, 2020

I have created a dash web app and used Apache server to deploy it.When I go to my url, www.urlname.com , it directs to IP address and IP address is shown in the search bar.Can anyone help me how to make sure that it shows the URL ?



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.

Hi @yahoo1294,

It seems like you haven’t configured properly your Apache Virtual Configuration or added an .htaccess redirect.

Firstly,I’ll recommend checking out the /etc/apache2/sites-available/example.com.conf where example.com will need to be replaced with your domain name. There you might have created a redirect to your IP address. If you are unsure what changes to do, I’ll recommend checking out the following Apache article:

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04

If you are still unsure afterwards, I’ll recommend posting your config here so that we can assist you with it.

Another possibility would be your .htaccess having a redirect to your IP address. The .htaccess will be placed in your website’s document root. I’ll recommend checking out there.

Regards, KDSys

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.