Im using xampplite 1.7.0.0, vhosts file is enabled in httpd-conf, and im only interest in local access, this is what ive been trying...
hosts
- Code: Select all
127.0.0.1 localhost
127.0.0.1 local.mydomain.com
127.0.0.1 local.myotherdomain.com
httpd-vhosts.conf
- Code: Select all
<VirtualHost 127.0.0.1:80>
DocumentRoot d:/xampplite/htdocs/
ServerName localhost
ServerAdmin admin@localhost
</VirtualHost>
<VirtualHost local.mydomain.com:80>
DocumentRoot d:/xampplite/htdocs/mydomain.com/
ServerName local.mydomain.com
ServerAdmin admin@local.mydomain.com
</VirtualHost>
That always brings me to the xampp setup area. http://local.mydomain.com/xampp/ to be precise.
I cant quite understand why it comes to this, what ive seen a few times is everything ive set up be redirected to the first entry in the vhosts file. Infact, removing the localhost block and it links through to the my local site fine, but for some reason everything after the first vhost configuration means nothing, it just sends it to the first vhost.
Hopefully this is something someone can relate to or can see exactly why im getting these results and how to correct it.
This isnt an area im used to playing in, so its pretty much an out of the box installation, and i really need to start using vhosts and right now all im doing is pulling my hair out so I really could do with some help with this as im fairly out of my depth in this area and going off variations of other peoples work isnt working for me unfortunately. I'd really appreciate some suggestions right now. Thx