I have Wamp installed, so I can run some simple dynamic sites that I created. I want to have three or four and learn how to do things locally and then upload the improved files to the site without having to rewrite sections due to different locations / paths, etc.
To show the WampServer index page, I go to http-vhosts.conf and add
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot "E:/wamp/www"
</VirtualHost>
I understand that I put the directory of my site with the name mysite.local in E: wamp / www, so the path will become E: wamp / www / mysite.local. Then I go to http-vhosts.conf and add
<VirtualHost *:80>
ServerName mysite.local
DocumentRoot "E:/wamp/www/mysite.local"
</VirtualHost>
at my host file
127.0.0.1 localhost 127.0.0.1 mysite.local
and my httfp.conf has
So, my problem with all this, I get that my WampServer index shows when I type localhost in the URL and mysite.local appears on this index page in the βYour Projectsβ section, which is good, but when I click on mysite .local link from WampServer, url changes to localhost / mysite.local, not mysite.local, and then when I click on the page link from localhost / mysite.local, I get localhost / mysite.local / linkedpage as url And 404 error.
mysite.local since the url also displays the WampServer index page
If I comment on localhost server_name from http-vhosts.conf and restart apache. I get what I need when I try mysite.local, when url-mysite works, and all dynamic links work. but the WampServer index is a 404 error.
All I want to do is log in to WampServer and visit various sites from the "Your Projects" list.
Please help numpty