I'm trying to get my development environment a little easier to use. I currently connect to my home server that is running XAMPP via its name, "server". This takes me to the default XAMPP page.
I also have a website set up on this, lets call it "website2". To access this website, I can remotely use "server/website2", or on the server using "localhost/website2".
I have successfully setup Virtual Hosts so that on the server I can access the website via "website2.localhost". Here is my vhosts file.
- Code: Select all
I also have my hosts file setup with "127.0.0.1 website2. localhost".
However, I would like to be able to access the website via "website2.server", but that is not working. I have tried editing the hosts file on my computer with "192.*.*.* website2.server" (obviously replacing the * with the actual IP), but that has not helped. Ideally, I would be able to access the website via something like "website2.192.*.*.*" across the network, so I can test my websites on other devices where editing a hosts file would be impossible (an iPhone, for example).
I'm not sure if this is possible, but I thought I would ask (: