when allowing default virtual hosts mod_rewrite doesn't work

I have a couple sites running on my ubuntu apache server that it works just fine. but when the default virtual hosts is used (the one in my sites-available folder) the rewrite doesn't work. I've checked error logs and all it says is that 404 about can not be found.