Domain mapping and local install

I'm having problems with domain mapping plugin running on a local install. I want to set up 2 local domains http://wp.dev and http://wp2.dev. But it wont work, I have to make it http://wp2.dev/something. I have set the multisite up as an sub directory install.