My IP in browser shows default Apache2 Ubuntu default page

Hi guys,

I'm trying to setup Domain Mapping for a Wordpress Multisite, but it doesn't seem to work. I have added the A name records correctly for the domain I wish to add in domain mapping.

Example:

I run a multisite with this blog:

blog.mysite.com

I purchased domain.com

Set A records for domain.com to be my linode server IP

Add the domain with the wordpress domain mapping setting - doesn't work. It directs to my the IP correctly. But that only displays the default ubuntu page.

For this reason I believe, the problem is that the my linode IP isn't directly pointed at "mysite.com" ?

Any help?

5 Replies

Sure, seems plausible. Could be anything.

What are the actual hostnames and IP addresses?

Postify.org and 104.200.18.98

Looks OK from here. I get a "Start your own blog" page at http://postify.org/, and postify.org is pointed at that IP address, and that is a Linode IP address.

Yes that I also know :)

However - If I put in the IP address in the browser. I get a default ubuntu page. Should that be like that?

The thing is, when I use domain mapping and point A records of the new domain, it goes to that default ubuntu page and doesn't go to the mapped blog site.

Yes, if you use http://104.200.18.98, that is different from http://postify.org, even if it is hosted at that IP address. This is by design.

It has been around for a long time (since HTTP/1.1 was introduced). It allows more than one virtual website to be hosted on the same IP address. HTTP/1.1 uses the Host: parameter to select which website to serve.

Typical ways to handle this situation include:

  • Redirect the user's browser to the primary website on the IP address

  • Present a list of websites on the IP address and have the user select one

  • Point both sites to the same DocumentRoot folder

  • Present an error message (404 or "ambiguous")

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct