I am trying to set my domain yfcclub.ga to folder /var/www/yfc
while leave localhost and all other domains to /var/www/html
in ubuntu.
My vhosts.cof file is:
<VirtualHost _default_:80>
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/html/error.log
CustomLog /var/www/html/access.log combined
</VirtualHost>
<VirtualHost yfcclub.ml:80>
ServerName yfcclub.ml
ServerAdmin [email protected]
DocumentRoot /var/www/yfc
<Directory /var/www/yfc>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/yfc/.errors/error.log
CustomLog /var/www/yfc/.errors/access.log combined
</VirtualHost>
But, all domains and localhost point to
var/www/yfc
folder. Am I missing something?
NameVirtualHost *:80