Domain name redirects to IP address

  • Posted July 1, 2013

I registered a new domain, changed its nameservers to point to DO’s. I went to my control panel, added a new domain:

Now when I goto the site redirects to the IP address. How can I keep it pointing to the domain name?

And when I goto (notice www.) it gives: Server not found


Submit an 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 web server do you have installed on your droplet? <br> <br>Also, did you create a CNAME “www” with host “@”?

Please list the files you have in these two directories: <br><pre>/etc/apache2/sites-available</pre> <br>and <br><pre>/etc/apache2/sites-enabled</pre>

I just installed Apache, php and mysql <br>Then I installed reddit using this script: <br> <br>I told the script to install it in /var/www/maghnatis <br>But if you navigate to you get a directory list <br> <br>Even though says ‘It Works’ <br> <br>My site is running Python code, it’s not static. <br> <br>I think this is the way to go. Install Apache and then install Reddit Code which is in Python.

@george.semaan, <br> <br>What type of site are you going to be running? If you’re going to have a lot of static files, you might want to consider Nginx over Apache. Nginx is generally regarded is faster than Apache. <br> <br>RE: zPanel, I don’t have any personal experience w/it; but I’ve ready plenty of blogs expressing concerns over security and bugs. Recently, I installed Webmin and it’s been working out pretty good. <br> <br><strong>But how do I tell my domain to point to it instead of another folder?</strong> <br> <br>You don’t tell the domain anything, in that regard. You specify the folder in either: <br><pre>/etc/nginx/sites-available</pre> <br> or <br><pre>/etc/apache2/sites-available</pre> <br>depending on which web server you go with.

I’m gonna create a new droplet, install apache, mysql, phpmyadmin, install zpanel (or an alternative control panel) and then I will install reddit script and specify the directory to be /var/www/mysite <br> <br>But how do I tell my domain to point to it instead of another folder? and how can I cloak the domain? I don’t want it to redirect to the IP address.

I don’t know what kind of webserver I am running but I can assure you it is not Apache. <br> <br>I used Reddit’s auto-installer to install the script. The code is in Python and uses many dependencies. <br>Here’s a list of the dependencies that were installed: <br> <br>python-dev <br>python-setuptools <br>python-routes <br>python-pylons <br>python-boto <br>python-tz <br>python-crypto <br>python-babel <br>cython <br>python-sqlalchemy <br>python-beautifulsoup <br>python-cssutils <br>python-chardet <br>python-psycopg2 <br>python-pycountry <br>python-pycassa <br>python-imaging <br>python-pycaptcha <br>python-amqplib <br>python-pylibmc <br>python-bcrypt <br>python-snudown <br>python-l2cs <br>python-lxml <br>python-zope.interface <br>python-kazoo <br>python-stripe <br> <br>nodejs <br>gettext <br>make <br>optipng <br>jpegoptim <br> <br>memcached <br>postgresql <br>postgresql-client <br>rabbitmq-server <br>cassandra <br>haproxy <br> <br>But if you navigate to which is my server, the site opens. <br> <br>

Do you have any kind of webserver running? <br> <br>You create the DNS record using digitalocean’s dns manager. Navigate to your domain in the DNS manager and click the Add record button: from 2013-07-01 22%3A22%3A09.png

No I do not have Apache installed. Is it a must for domains to work properly? <br> <br>And how do I create the CNAME record?

Do you have Apache installed? <br> <br>Re: “www” - you have to create that CNAME record in order to make the www subdomain work.