I have several domains running under apache. Most of theme they do not have yet virtualhost. My problem is that all this not registered domains by apache are getting redireted to the setup domain. How to force apache to accept request just from the domain.
what I mean
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org ServerName mydomain.com ServerAlias mydomain.com www.mydomain.com DocumentRoot /var/www/mydomain.com/ <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/mydomain.com/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>
than I have for example
all are redirected to
mydomain.com. This should be avoided
if I use wildcar like ServerAlias *.domain1.co.uk and I have subdomain svn.domain1.co.uk than the svn subdomain is going to be redirected to domain1.co.uk