I need to configure my evelynblac.com.conf file so that any request with a subdomain gets mapped to the directory named after the subdomain (please see image in link). How can I do this?
<VirtualHost *:80>
ServerName evelynblac.com
ServerAlias *.evelynblac.com
ServerAdmin support@evelynblac.com
DocumentRoot /var/www/*.evelynblac.com
<Directory "/var/www/*.evelynblac.com">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Screenshot of my evelynblac.com.conf file
PS: I'd like a solution that does not require me to modify .htaccess if possible.