Host multiple websites on an Apache serverTo use this method it is necessary to enable the module "mod_alias".
Using Alias:With aliases, it is possible to link an address like http://serveur/truc and a folder on the server.
Whhen a client connects to http://serveur/website he is redirected to /path/to/root/of/website. We must also allow the folder to be read by adding:
Alias /website /path/to/root/of/website
The problem that may be encountered in a production environment is that aliases are case sensitive. To avoid this, it is possible to use:
<Directory /path/to/root/of/website> Order allow,deny Allow from all </Directory>
By using this alias paired with the regular expression, the alias is case insensitive.
AliasMatch (?i)^/website(.*) /path/to/root/of/website$1