Would almost be better to have the ability to customize the VirtualHost script or add in our own custom script to each one. Maybe have a httpd-vhosts-custom.conf file. Anything we put in there gets added to each virtualhost right before the </VirtualHost> tag. Not sure if we would need one for both :80 and :443.
Personally it would be best if there was just a script that we could modify like this:
(httpd-vhosts-default.conf)
Code
<VirtualHost {localhost}:80>
<Directory "{document_root}">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName {domain}
ServerAlias {domain}
ScriptAlias /cgi-bin/ "{document_root}/cgi-bin/"
DocumentRoot "{document_root}"
ErrorLog "/Applications/AMPPS/apache/logs/{domain}.err"
CustomLog "/Applications/AMPPS/apache/logs/{domain}.log" combined
</VirtualHost>
Also one for :443
|