127.0.0.1 developmentsite.com
127.0.0.1 blockeddomain1.com
127.0.0.1 blockeddomain2.com
I would like to block the last 2 domains (and a bunch of others). For this I have added the following vhost entry:
<VirtualHost *:80>
DocumentRoot "/sites/blocked"
<Directory /sites/blocked>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
That works fine. But now I'd like the first domain to get routed to a site I'm serving (running XAMPP). This works for routing ALL the domains to my dev site:
<VirtualHost *:80>
DocumentRoot "/sites/developmentsite.com"
ServerName developmentsite.com
ServerAlias developmentsite.com
<Directory /sites/developmentsite.com>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog "/sites/logs/developmentsite.com/error_log"
CustomLog "/sites/logs/developmentsite.com/access_log" common
</VirtualHost>
But I want to send just the developmentsite.com there. I've tried different ports and ips, but I think I just don't understand something basic.
Sorry to ask such a basic question. Thanks!