[BlueOnyx:10557] Re: Sites with blank host

Michael Stauber mstauber at blueonyx.it
Sun May 13 15:06:05 -05 2012


Hi Stephanie,

> The center of my point is the SSL didn't work correctly UNLESS the sitename
> was foo.com. When I tried using foo.com as an alias of www.foo.com there
> were logs that pointed out the problem:
> 
> [Mon May 07 14:13:55 2012] [warn] RSA server certificate CommonName (CN)
> `foo.com' does NOT match server name!?
> 
> Soon as I changed the site name in the sitexx file to foo.com and the alias
> to www.foo.com everything worked fine again.

Hmm. OK. What about this: Name the site www.foo.com. Then duplicate the entire 
virtual host container (start to finish) from the siteX file and copy it into 
siteX.include as foo.com

No aliasses. Then use .htaccess to do the redirect from www.foo.com to 
foo.com?

Not sure if that works, though.

> That plus the fact I had to manually create a ssl cert seems a good reason
> to allow site creation without a host. What do you think it would break if
> we took the host requirement away? Maybe there is the assumption the host
> isn't null throughout the code? Maybe it would be a huge PITA to make
> hostless sites possible. I don't know. I do know I come across sites more
> that don't have a www. Or other host in front of them.

Yeah, hostless Vsites are a pita. Too many places to hack work around into:

base-vsite
base-subdomains
base-user
base-sitestats
base-maillist

And probably some that I forgot about. It's too deeply rooted into the system 
that a Vsite must have a hostname.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list