Web Hosting Talk







View Full Version : apache virtual host/create account problem


rlynch
12-17-2002, 05:14 AM
whenever a new account is created, a set of directives are saved in the httpd.conf. this is normal, but for some reason, the line 'NameVirtualHost <ip address>:80 is also added. i duno if this is supose to be added, but it messes up apache. the only way to fix it is if i manually deleted the line. anyone have any idea wahts going on? thanks

im running redhat 7.3 and apache 2.0.43

ho247
12-17-2002, 06:55 AM
A little more info about your server would be useful... are you running any control panels? How are you adding the entries into the httpd.comf file? You only need one instance of the line "'NameVirtualHost <ip address>:80", this allows Apache to know that you're going to be hosting more than one website on the same IP address, called named-based hosting.

Alan

rlynch
12-17-2002, 05:05 PM
running cpanel5. creating accounts through that. i know that i only need one instance, but for some reason it adds it every time i add a new account.

ho247
12-18-2002, 09:43 AM
I certainly shouldn't be doing that, have you upgraded Cpanel to the most stable release? If it continues to do this, you might want to submit a ticket to support@cpanel.net, as there should only be one NameVirtualHost directive for each differrent IP address on each different port used for name-based hosting.

Alan

rcs
12-18-2002, 10:18 AM
Yeah. If it's entering NameVirtualHost <ip>:port even if that name exists, it might be a bug that you could fix.

How does Cpanel edit apache's conf file? is it compiled into the binary or just a running script?