Domain Name directs to the IP address

I have created a dash web app and used Apache server to deploy it.When I go to my url, , 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 ?

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.

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/ where 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:

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