Question
Vhosts does not work
my conf:
<VirtualHost *:80>
ServerName test.com
DocumentRoot “/var/www/somedir1/”
UseCanonicalName Off
ErrorLog logs/test.com-error.log
CustomLog logs/test.com-access.log combined env=!dontlog
</VirtualHost>
<VirtualHost *:80>
ServerName test2.com
DocumentRoot “/var/www/test2.com/”
UseCanonicalName Off
ErrorLog logs/test2.com-error.log
CustomLog logs/test2.com-access.log combined env=!dontlog
</VirtualHost>
and i still get a welcome page, apache 2.4.6
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×