I have a domain www.domain.com I want to have another (on the same or a different IP) jale.domain.comWhen I try to create the new site with host name jale and domain name domain.com it tells me:Another site is already aliased to the domain domain.comI thought this should be valid, 2 machine/host names on the same domain. Am I missing the boat on something?Hi - before anyone jumps on me and says LITB, awesome Gerald gave me the book-reference :)
I have all of this setup and it works fine except for one thing - I created a domain.conf file that looks like:
<VirtualHost 123.123.123.123>
ServerName www.jale.domain.com
ServerAdmin siteadminname
ServerAlias jale.domain.com
DocumentRoot /home/sites/www.domian.com/users/jale/web
RewriteEngine on
RewriteCond %{HTTP_HOST} !^123.123.123.123(:80)?$
RewriteCond %{HTTP_HOST} !^www.jale.domain.com(:80)?$
RewriteRule ^/(.*) http://www.jaledomain.com/$1 [L,R]
RewriteOptions inherit
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>
- the only thing I don't like is that when I goto jale.domain.com the URL
changes to www.jale.domain.com - it all works, just looks funny when you go
to the page. Anything I can do about it? If it is a big deal I'll just
leave it, if easy I'd do something about it.
Thanks, Jale