You COULD cheat it a bit and setup rewrite rules in .htaccess for any cases that don't match a list of domains
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.validdomain1\.com #list each domain that should exist RewriteCond %{HTTP_HOST} !^validdomain1\.com #list each domain that should exist RewriteCond %{HTTP_HOST} !^www\.validdomain2\.com #list each domain that should exist RewriteCond %{HTTP_HOST} !^validdomain2\.com #list each domain that should exist RewriteCond %{HTTP_HOST} !^www\.validdomain3\.com #list each domain that should exist RewriteCond %{HTTP_HOST} !^validdomain3\.com #list each domain that should exist RewriteRule ^(.*) http://www.defaultdomain.com/$1 [L,R=301] #rewrite to a default domain This was my method of making sure that people were on valid domains Just a thought -- Dan Horning American Digital Services - Where you are only limited by imagination. dan.horn...@planetnoc.com :: http://www.americandigitalservices.com 1-518-444-0213 x502 . toll free 1-800-863-3854 . fax 1-888-474-6133 15 Third Street, PO Box 746, Troy, NY 12180 (by appointment only) -----Original Message----- From: joomla-boun...@lists.nyphp.org [mailto:joomla-boun...@lists.nyphp.org] On Behalf Of Hans Zaunere Sent: Friday, March 06, 2009 11:15 AM To: 'NYPHP SIG: Joomla' Subject: Re: [joomla] IP Hosting and Cached Host Name > $live_site is supported... Just fill it in... Yeah, apparently this is the only solution. I looked through the code too, and JURI is using HTTP_HOST, which won't exist in this case. Seems as though it could use SERVER_NAME or at least failover to it. H > > So for a site that isn't using name virtual hosting, I'm having issues with > > Joomla caching erroneous hostnames during link creation/etc. > > > > For example, if someone points badman.badplace.com to www.mysite.com and > > happens to hit a page that hasn't been cached yet, the URLs generated now > > point to http://badman.badplace.com/some-url which is obviously a bad thing. > > > > I understand that now $live_site variable isn't supported. How can this be > > resolved? _______________________________________________ New York PHP SIG: Joomla! Mailing List http://lists.nyphp.org/mailman/listinfo/joomla NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php _______________________________________________ New York PHP SIG: Joomla! Mailing List http://lists.nyphp.org/mailman/listinfo/joomla NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php