Alright, so normally I like to keep my files organized, my entire server in the VirtualBox actually. I was thinking about running the server on my very Mac itself, but I think running Linux inside a box, which I could duplicate for backups is more necessary.
All of my sites have their own .conf because I run many subdomains and whatnot to keep everything categorized.
Here's my question: I have my Virtual Hosts set up as what I have listed below where each Directory have their own Options and Indexes, but how do I create just ONE <Directory> setting for all of the subdomains including the domain itself? Because I feel like I'm just rewriting the same thing over and over and I feel like it's a waste of a file.
<VirtualHost *:80> ServerName example.com ServerAlias www.example.com ServerAdmin email@example.com DocumentRoot /var/www/example/public <Directory "/var/www/example/public"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost *:80> ServerName dyno.example.com ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/example/dyno <Directory "/var/www/example/dyno"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>