I am trying to set up an Alias for Apache that will work on all domains on my server. Something similar to the /cpanel /whm and /webmail redirect that cPanel has by default.
I know I can add an Alias in the include for each user/domain by adding a .conf file in the /usr/local/apache/conf/userdata/std directories, but there must be a easier way that will work globally on any domain, even a new one.
Example:
I want to add an alias that should work for any domain on the server:
Alias /Autodiscover/Autodiscover.xml "/var/www/Autodiscover/Autodiscover.php"
so that
http://mydomain.com/Autodiscover/Autodiscover.xml
http://anotherdomain.com/Autodiscover/Autodiscover.xml
http://moredomain.com/Autodiscover/Autodiscover.xml
all get redirected to /var/www/Autodiscover/Autodiscover.php
Is this possible?
I know I can add an Alias in the include for each user/domain by adding a .conf file in the /usr/local/apache/conf/userdata/std directories, but there must be a easier way that will work globally on any domain, even a new one.
Example:
I want to add an alias that should work for any domain on the server:
Alias /Autodiscover/Autodiscover.xml "/var/www/Autodiscover/Autodiscover.php"
so that
http://mydomain.com/Autodiscover/Autodiscover.xml
http://anotherdomain.com/Autodiscover/Autodiscover.xml
http://moredomain.com/Autodiscover/Autodiscover.xml
all get redirected to /var/www/Autodiscover/Autodiscover.php
Is this possible?