[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Raq550 + shell-tools-2.03-0 + name based vhosts = caddvsite added sites resolve to site1



> I've several raq550's each with the RaQ550-shell-tools-2.03-0 RPM 
> installed. I've a set of scripts that cause caddvsite and cadduser to be 
> executed to create new sites/users from a central server that takes user 
> registrations. This system works on all the other Raq550's (configured 
> IDENTICALLY, as far as I can tell), however on the two new Raq550's 
> we've just added to the setup things don't work in a rather bizarre fashion.

> when the following commands get executed on the 2 new raqs:
> /usr/sbin/caddvsite --domain=my.domain.com --host=test --maxusers=1 
> --enable-cgi --enable-php --quota=50 --ipaddr=XXX.XXX.XXX.XXX
> /usr/sbin/cadduser --name=test --password='userspassword' 
> --fullname='Test' --fqdn=test.my.domain.com --admin 
> --adminPassword='adminpassword'
> The site _appears_ to be created as normal (exactly as it does on the 
> working servers) - and everything appears correctly in the admin GUI, 
> however when I visit http://test.my.domain.com in my browser, I am 
> redirected to the server's site1 page (http://my.server.com) - the DNS 
> is setup correctly using wildcard DNS to resolve *.my.domain.com to the 
> the server's IP, and from reading through /etc/httpd/conf/httpd.conf and 
> the relevant files in /etc/httpd/conf/vhosts/ everything there appears 
> to be correct (ie. no different than it is on the working servers).
>  From my experience this looks like apache's name based virtual setup 
> isnt working, so I attempted adding a site from the admin panel, and 
> this worked as normal! Comparing the new sites configuration to an 
> unworking one's configuration showed me everything is apparently as it 
> should be in both.
> Has any one encountered something similar? Or is the writer (Jeff 
> something .. ) of the shell tools around? I desparately need to solve 
> this problem, any insight would be greatly appreciated; I've spent hours 
> searching the archives and the web, and not found anyone with a remotely 
> similar problem.

Hmmm, that is odd, I haven't updated shell-tools in while maybe
a recent RaQ550 update is causing a problem. 

Is the url test.my.domain.com getting re-written to my.server.com in the
browser?

Some things to try:
- Restart the apache server using /etc/init.d/httpd stop/start (don't HUP)
- Check the apache error log for errors about test.my.domain.com
- Make sure that test.my.domain.com isn't a web aliases for my.server.com
- Double check your dns settings from a remote host
- Try holding down shift and click the refresh/reload button in your browser.

If these don't work send me an email off-list with the real host names and IP
addresses for these sites.

Jeff-