I'm trying to set up a single apache virtualhost file that will route xyz.mycompany.com to /var/www/html/development/xyz/public
Here is my hard-coded version. Is there a way to swap "xyz" with a variable?
<VirtualHost *:80>
ServerName xyz.mycompany.com
ServerAlias xyz.mycompany.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/development/xyz/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/development/xyz>
AllowOverride All
Options -Indexes +FollowSymLinks +MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>