/scripts/upcp causing problems with httpd.conf

WebIdentity

Member
Mar 27, 2004
17
0
151
Basically, we've just installed a VMWare server, running behind a hardware firewall, we have 2 interface eth0 and eth1

eth0 = 192.168.5.130
eth1 = 192.168.5.30
eth1:1 = 202.66.32.100
eth1:2 = 202.66.32.101

202.66.32.101/101 is dns and 100 is the shared ip for all the sites.

Every other service on the system works perfectly except for apache. Ironically I get the "Great Success!" page for every single site on the sever.

So in my relentless efforts to make this work i changed the vhosts.default file (config template for apache) to simple suffix the VirutalHost as follows

<VirutalHost *> rather than <VirutalHost 202.66.32.100:80>

(I saw this solution on an apache forum googling)

So all is well until it does its /scripts/upcp at 1am and adds an extra VirutalHost directive at the footer of the config file as follows.

<VirtualHost 192.168.5.30:80>
ServerName blahblahblah.com
DocumentRoot /usr/local/apache/htdocs
etc ..
</VirtualHost>

God knows why it does it, I cant see it in any of the template makeups in the system, the distiller doesnt get run because all the config tweaks i made to the templates remain.

Seriously got me stumped ... any advice would surely go far, I put this system into production thinking its working and now I find myself staying up till 1am everymorning running /scripts/rebuildhttpdconf.

Thanks
 
Last edited:

MattCurry

Well-Known Member
Aug 18, 2009
275
0
66
Houston, Tx
scripts/upcp causing problems with httpd.conf

Hello,

I do see where there may be an issue, and we will definitely try to get you fixed up. The first thing I would do is to go into Basic Setup in WHM, and change your "Basic Ethernet Device" to eth1:1 = 202.66.32.100. After that you may have to restart apache, otherwise it should work. You can test by running /scripts/upcp. Hope that helps, please feel free to ask any questions.

Thank you,
Matthew Curry
 

WebIdentity

Member
Mar 27, 2004
17
0
151
Thanks - This solution worked nicely.

Just a quick one, when i create a new account it still creates the ViritualHost section with the IP, is there somewhere where i can tweak it like the above mentioned concept?

One would think making the account would use the vhost.main template file but i find after making the account i still need to do a /scripts/rebuildhttpconf

Cheers