This question already has an answer here:
- Why not use a WAMP stack? 3 answers
I have added the following line to my .hosts file:
127.0.0.1 app.myapps.local 127.0.0.1 localhost # existing line has always been there #
In my version of WAMP my virtual hosts are found within the following directory:
In my virtual hosts file (there are lots of existing vhosts in there) I have added the following new addition
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot "c:/wwwroot/app/App/www/app.html" ServerName app.myapps.local <Directory "c:/wwwroot/app/App/www/app.html"> Options +Indexes AllowOverride All </Directory> ErrorLog "c:/wwwroot/app/log/error.log" CustomLog "c:/wwwroot/app/log/access.log" common LogLevel debug SetEnv MANGO_ENVIRONMENT ME </VirtualHost>
I have restarted apache and flushed the dns but for some reason everytime I load up app.myapps.local in the browser I am presented with the default WAMPSERVER homepage.
Can anyone suggest what could be wrong in my setup?
-- UPDATE --
I have noticed that app.myapps.local seems to behave like an alias to
http://localhost for some reason, for instance I have test website with the local url of
localhost/test however if I do
app.myapps.local/test I get the same content as
Any ideas on why this is happening?