I've an apache placed on Debian Linux. An online host, that is referred to within the file /etc/apache2/sites-enabled/site.conf, something of that nature
<VirtualHost *:80> ServerName site.com DocumentRoot /var/www/site </VirtualHost>
I've added new Virtual Host for this file, now this file appears like
<VirtualHost *:80> ServerName site.com DocumentRoot /var/www/site </VirtualHost> <VirtualHost *:80> ServerName site-mirror.com ServerAlias *.site-mirror.com DocumentRoot /var/www/site </VirtualHost>
and restarted apache
Now, after i visit site-mirror.com, apache redirects me to site.com (301 redirect)
What is the issue ?
I'll appreciate any help, thanks
A really quick guess but the truth that both DocumentRoots are identical might be fooling apache and dealing with it as being a redirect, try altering the mirror documentroot and find out should you get the 301.
I believe the redirection is performed by wordpress to avoid Search engine optimization problems. you will need some wordress specific module to aid multi-domain access on a single wordpress installation like this one, domain-theme.