Set up Virtual Hosts
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.shopsupplies.loc
DocumentRoot /home/ljuboja/sites/shopsupplies.loc
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/ljuboja/sites/shopsupplies.loc/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName petstock.shopsupplies.loc
DocumentRoot /home/ljuboja/sites/shopsupplies.loc
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/ljuboja/sites/shopsupplies.loc/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>