I am trying to setup an mobile app that I have received from another dev locally on my machine, this is a cordova based mobile app that is basically html5/javascript etc..
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:
C:\wamp\vhosts\local.conf
In my virtual hosts file (there are lots of existing vhosts in there) I have added the following new addition
<VirtualHost *:80>
ServerAdmin me@website.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 localhost/test
.
Any ideas on why this is happening?