<VirtualHost 127.0.0.1:80>
ServerAdmin root@localhost
DocumentRoot "/var/www/test.com/public_html"
ServerName test.loc
ServerAlias www.test.loc
DirectoryIndex index.php index.html
ErrorLog "logs/test.loc-error_log"
CustomLog "logs/test.loc-access_log" common
<Directory "/var/www/test.com/public_html">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>