Currently, I have Apche set us a NameVirtualHost *, and each VirtualHost *:80, running multiple virtualhosts. I would like all of the virtualhosts to redirect to a url, if the calling hostname is so I tried this:
<VirtualHost *:80>
UseCanonicalName off
ServerName mail.*
DocumentRoot /home/mailredirect
</VirtualHost>
before all the virtals, but it is kinda screwey, sometimes works, sometimes not. Is there a way to pit a directive in all of the virtuals, like an If statement, that will do what I want, without a problem?
B
<VirtualHost *:80>
UseCanonicalName off
ServerName mail.*
DocumentRoot /home/mailredirect
</VirtualHost>
before all the virtals, but it is kinda screwey, sometimes works, sometimes not. Is there a way to pit a directive in all of the virtuals, like an If statement, that will do what I want, without a problem?
B