I've set-up Apache on Windows 7 to have a few Virtual Hosts for local development purposes.
The httpd-vhosts.conf
file has this format for all virtual hosts:
<VirtualHost *:80>
ServerName example.dev
DocumentRoot "C:/Program Files (x86)/Apache2.2/htdocs/example.dev/" # <--removing the forwardslash here doesn't fix this
</VirtualHost>
The Windows hosts
file has this for each:
127.0.0.1 example.dev
Now, what bothers me is that each time I type example.dev
in the address bar, it gets added an extra trailing forwardslash, becoming example.com/
. I get this for all my virtual hosts. Simply accessing localhost
does not add the trailing forwardslash. This does not happen: localhost/
.
Not a big deal, but it bothers me and I can't find a solution to that.
Any ideas?