Report this

What is the reason for this report?

http://mydomain.com redirects to http://myip

Posted on December 19, 2013

If i type the url http://mydomain.com i get http://myip instead of my domain name.

I have checked ServerName, ServerAlias directives…

The point is that https://mydomain.com:8000 works fine and i get my Ajenti login page without the url being changed.

So… it seems to be a misconfiguration between Apache and Ajenti ??

Any help would be appreciated.

PD: i have DNS records

A @ <myip> CNAME www @



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.

What operating system are you running? Apache on Ubuntu is different than Apache on CentOS.

Debian, but i have just figured it out!! :-) I had installed prestashop and it seems it has a default seo redirection to the ip. Changed it to my domain and it works fine. <br> <br>Thanks for the reply

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.