[Newbie] VirtualHost Issue

Hi everyone,

I'm having some trouble with my VirtualHost configuration.

I have multiple sites in my Linode, but right now they all redirect to a single one. I'm getting these error messages on every CRON email I get:

> /etc/cron.daily/logrotate:

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.bzzzd.com:0 overlaps with VirtualHost www.bzzzd.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost 173.230.151.109:0 overlaps with VirtualHost www.bzzzd.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost 173.230.151.109:0 overlaps with VirtualHost 173.230.151.109:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.americaselitevillas.com:0 overlaps with VirtualHost 173.230.151.109:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.americaselitehotels.com:0 overlaps with VirtualHost www.americaselitevillas.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.americaselitegroup.com:0 overlaps with VirtualHost www.americaselitehotels.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.asiaelitegroup.com:0 overlaps with VirtualHost www.americaselitegroup.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost 173.230.151.109:0 overlaps with VirtualHost www.asiaelitegroup.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.edwardmoulton.com:0 overlaps with VirtualHost 173.230.151.109:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.shortbrands.com:0 overlaps with VirtualHost www.edwardmoulton.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

[Sun May 20 06:25:09 2012] [warn] VirtualHost www.5letterbrands.com:0 overlaps with VirtualHost www.shortbrands.com:0, the first has precedence, perhaps you need a NameVirtualHost directive

I know I have to make some changes to my VirtualHost configuration but I don't have the necessary expertise with Linux to do so.

Can anyone help, please?

Thank you!

8 Replies

Perhaps provide that configuration file so we can see how you are doing this to end up with the errors you are posting.

Also helps to know what distro you are using and what web server type.

Hi,

The distro is Ubuntu 10.04 LTS on a Linode 512 server.

Can you tell me how to access the current VirtualHost configuration file?

Thanks again.

Depends on what web server you are using.

Who did the configuration of the virtual hosts if you didn't?

A guy that doesn't work for me any more did the configuration originally., about a year ago.

All the sites worked until about a week ago.

So is that first site (http://173.230.151.109) just a placeholder?

The prices on those domain names can't possibly be real (bzzzd.com for $9,995 all the way up to tawke.com for $100,000).

If those are actual prices, why are you farting around playing SysAdmin, just hire another code monkey to sort out your mess.

That ip seems to be just a placeholder.

I manage several sites on different servers, the problem is that I don't know enough about Linode or linux to get to the file that I need to configure. The person that developed these sites decided to host them on linode. Once I can access the configuration file, I can configure the VirtualHost myself.

Thanks everyone for your help.

You seem to be running Apache. By default, apache places the sites in /etc/apache2/sites-enabled. The interesting directories for you are:

/etc/apache2/sites-enabled (for enabled sites; vhosts)

/etc/apache2/sites-available (both sites that are enabled but also those that are disabled)

/etc/apache2/apache2.conf –> general apache2 config

/etc/apache2/httpd.conf --> "special" configuration. Though I believe this depends on your distro.

Thanks, I will give this a shot and post back.

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