Website with fixed IP is redirected incorrectly

Dear sir,

I have two IP addresses in my Linode and set one of them for a specific domain lets say a.com

However, using a.com address in the browser displays another website of mine lets say b.com.

Support commented that something might be wrong with Apache virtual hosts configuration. Can anyone advise how to fix, please?

Tthanks and regards

3 Replies

msamavi,

We'll need more information in order to help you. Please provide the domain names and the vhosts configs for each domain.

Make it as easy as possible for us to help you.

MSJ

You're probably looking for an additional NameVirtualHost directive entry inside of httpd.conf. You can have multiple for as many IP addresses as you'd like Apache to bind to.

NameVirtualHost 123.123.123.123

then proceed with your Virtual Host directives as normal, specifying the secondary IP address.

 <virtualhost 123.123.123.123:80="">ServerName ...</virtualhost> 

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