webmin+virtualmin - new virtual server = new problem

4 posts / 0 new
Last post
#1 Thu, 05/15/2014 - 04:12
ddstaff

webmin+virtualmin - new virtual server = new problem

Hi all !!

I've a problem with my vps, i've installed cent0s + webmin and virtualmin.

All seem to be corrected installed, and works.

But when I create a new virtual server, in etc/httpd/conf/httpd.conf there's a problem

NameVirtualHost 85.94.198.XXX:80 NameVirtualHost [85.94.198.XXX]:80 <----------------------problem

there's a duplicate entry of my ip, and i must correct manually to work correctly.

Every time i create a new virtual servers, overwrite the httpd.conf and i must correct this

Thu, 05/15/2014 - 09:28
andreychek

Howdy,

Hmm, so just to clarify, are you saying that every time you add a new Virtual Server, it adds a new line containing this:

NameVirtualHost 85.94.198.XXX:80

It definitely shouldn't be adding new NameVirtualHost lines, those should only be added in the case where the IP being used doesn't exist.

-Eric

Wed, 05/21/2014 - 03:42 (Reply to #2)
ddstaff

hi,

NameVirtualHost 85.94.198.xxx:80
NameVirtualHost [85.94.198.xxx]:80

ServerName...................

Wed, 05/21/2014 - 09:16
andreychek

Howdy,

I see two things I'd change in your Apache config.

First, I'd recommend commenting out this line:

NameVirtualHost [85.94.198.xxx]:80

Second, I'd change this line here:

<VirtualHost *>

So that it reads like this:

<VirtualHost 85.94.198.107:80>

After that, restart Apache.

Once you do that, does that correct the issues you've been seeing?

-Eric

Topic locked