It didn't worked for me

.
I tried to install on my localhost with my vhost config:
PHP Code:
NameVirtualhost mainforum.local:801
<VirtualHost mainforum.local:801>
DocumentRoot "D:/projects/test/mainforum"
ServerName mainforum.local
<Directory "D:/projects/test/mainforum">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</VirtualHost>
NameVirtualhost sub.local
<VirtualHost sub.local>
DocumentRoot "D:/projects/test/mainforum"
ServerName sub.local
<Directory "D:/projects/test/mainforum">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</VirtualHost>
and here is in my vCerberus mainforum:
PHP Code:
[mainforum.local]
bbtitle=mainforum.local
bburl=mainforum.local
homeurl=mainforum.local
catids=5
styleid=1
cookiedomain=.mainforum.local
facebookappid=Your_appid_here
facebooksecret=Your_fb_secret_here
[sub.local]
bbtitle=sub.local
bburl=sub.local
homeurl=sub.local
catids=1
styleid=1
cookiedomain=.sub.local
facebookappid=Your_appid_here
facebooksecret=Your_fb_secret_here
When I go to
http://sub.local It redirected
http://mainforum.local. How to fix it?