################# IP-based Virtual Hosts DocumentRoot /www/site2 ServerName www.rhelip.com DirectoryIndex index.html Customlog /www/logs/site2/rhelip.log combined Errorlog /www/logs/site2/rhelip_error.log Require all granted ################# Named VirtualHosts NameVirtualHost *:80 ##################Default Site Virtual Host VirtualDocumentRoot /var/www/html/%-3 ServerName i2tch.loc ServerAlias *.i2tch.loc ServerAdmin webmaster@localhost LogLevel info Options FollowSymLinks AllowOverride All Require all granted ##################www.rhelnom.com ServerName www.rhelnom.com DirectoryIndex index.html DocumentRoot /www/site1 Customlog /www/logs/site1/rhelnom.log combined Errorlog /www/logs/site1/rhelnom_error.log Require all granted AllowOverride AuthConfig