I want to have multiple domain names go to one site, wonder if I can do it with the 'serveralias' directive?
eg:
With the above ServerAlias directive, can I specify multiple names on the one line, I want "bloggs.com.au and "bloggs.com" to basically work just like "www.bloggs.com.au"
Am I on the right track, or do I have to specify multiple ServerAlias directives within this virtual host like this:
I'm guessing that this one, will bug out, as you cant have a directive twice in a virtual host?
Thanks in advance!
eg:
Code:
<VirtualHost *>
ServerAdmin joe@bloggs.com
DocumentRoot /var/www/bloggs
ServerName www.bloggs.com.au
ServerAlias bloggs.com.au bloggs.com
ErrorLog logs/www.bloggs.com.au-error_log
CustomLog logs/www.bloggs.com.au-access_log common
</VirtualHost>
With the above ServerAlias directive, can I specify multiple names on the one line, I want "bloggs.com.au and "bloggs.com" to basically work just like "www.bloggs.com.au"
Am I on the right track, or do I have to specify multiple ServerAlias directives within this virtual host like this:
Code:
<VirtualHost some.ip.address>
ServerAdmin joe@bloggs.com
DocumentRoot /var/www/bloggs
ServerName www.bloggs.com.au
ServerAlias bloggs.com.au
ServerAlias bloggs.com
ErrorLog logs/www.bloggs.com.au-error_log
CustomLog logs/www.bloggs.com.au-access_log common
</VirtualHost>
I'm guessing that this one, will bug out, as you cant have a directive twice in a virtual host?
Thanks in advance!