I fully agree! The supplied form to create a host is completely jabberish to me.
I use local domain names using vcap.me, and need the virtual host to be like they are on the production server. Therefor, I added "Include conf/extra/myhosts/*.conf" to httpd.conf (instead of commenting out the line you mentioned).
In folder "myhosts", I create my own virtual host files. Example:
<VirtualHost 127.0.0.1:80>
ServerName mydomain.com.vcap.me
ServerAlias *.mydomain.com.vcap.me
DocumentRoot path-to-docroot
<Directory path-to-docroot>
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ErrorLog /var/log/apache2/mydomain.com-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/mydomain.com-access.log combined
</VirtualHost>
Quote From : keithy April 8, 2017, 6:13 pm My latest incarnation of simple virtual hosting.
Quote
# Virtual hosts
#Commented Out the following
#Include conf/extra/httpd-vhosts.conf
#Added
VirtualDocumentRoot {$path}/www/%0
VirtualScriptAlias {$path}/www/%0/cgi-bin/
|