I am developing a site and that that is managed by two. one is me and the other is the designer accessing from different machines across LAN.
Conf: php, apache, windows xp, mysql.
Document root: d:\www\xampp\htdocs. all the projects are under this as subfolders.
I have set up virtual host so that i will not access all the projects as http://localhost/foldername but just as http://foldername.
But for the designer who is in the other system he has to access like http://computername/foldername
For example let me be working in a project payroll. i will access that as http://payroll but my designer will access that as http://computername/payroll.
What i want to do is i want the designer to access the same way i access. that is http://payroll.
so that in the designer system when the server name is payroll i want it to be directed to my machine and then to the project folder. so if he gives http://payroll then the application in my system should run for him.
i have setup the hosts file in the designer system to point to my machine. so this work is done and when he gives payroll my http://localhost is appearing.
what should i do so the designer can access my project like http://payroll form his system?
The designer has to add your IP address with each
sitenameto his hosts file as without it his browser won’t know where to look for the site. It could look like this:This might be enough if your VirtualHosts are not bound to a specific IP address. This would not work:
It should be:
This way apache will serve the site called
sitenamewhenever it sees a request with the hostnamesitenameand it won’t matter if it came from the same computer or not.