Using a virtual host result in internal error I'm trying to setup a virtual host to access my craft project through ontherocks.dev, without any success yet.


www.ontherocks.dev : correct response
www.ontherocks.dev/admin : Apache 404
www.ontherocks.dev/index.php/admin : redirected to www.ontherocks.dev/admin/install with an Apache 404


I didnt "install" craft yet, which explains the redirect. Here are my config files for the virtual host :

httpd-vhosts.conf

&lt;VirtualHost *:80&gt;
  ServerName ontherocks.dev
  DocumentRoot "C:\wamp\www\y-lynx"
  ServerAlias www.ontherocks.dev
 DirectoryIndex index.php
&lt;/VirtualHost&gt;


hosts file in system32/drivers/etc

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
127.0.0.1       ontherocks.dev


Thanks for your help !
Looks like the .htaccess file included with Craft is not being read or you didn't rename it (should be .htaccess with the period at the beginning). 

That's why /index.php/admin is working but /admin/ is not.

One other possibility is Apache is setup to ignore .htaccess files. If that's the case, add this to your httpd-vhosts.conf file.

&lt;Directory "C:\wamp\www\y-lynx"&gt;
    AllowOverride All
&lt;/Directory&gt;


(If you already have a &lt;Directory "C:\wamp\www\y-lynx"&gt; block, just add in AllowOverride All somewhere inside.)