I have created a virtualhost for one of my localhost websites:
<VirtualHost *:80>
ServerName mysite
DocumentRoot /var/www/html/mysite/public
<Directory /var/www/html/mysite/public>
Options Indexes FollowSymLinks
AllowOverride All
allow from all
</Directory>
</VirtualHost>
Now, I can't access other local websites anymore. for example when I go to localhost/anotherwwebite I get redirected to mysite.