i have a problem that i have two local sub-domains
fcsuk.localhost
fcsusa.localhost
setup perfectly ,i have configured each one in httpd.conf and added the information in the HOSTS file located in
C:\WINDOWS\system32\drivers\etc\ by adding the following lines
Expand|Select|Wrap|Line Numbers
- 127.0.0.1 fcsusa.localhost
- 127.0.0.1 fcsuk.localhost
Expand|Select|Wrap|Line Numbers
- NameVirtualHost *:80
- <VirtualHost *:80>
- DocumentRoot D:/xampp/htdocs/ews/projects/free-call-schedule/live-replica
- ServerName fscusa.localhost
- </VirtualHost>
- <VirtualHost *:80>
- DocumentRoot D:/xampp/htdocs/ews/projects/free-call-schedule/live-replica
- ServerName fscuk.localhost
- </VirtualHost>
- <VirtualHost *:80>
- DocumentRoot D:/xampp/htdocs/
- ServerName localhost
- </VirtualHost>
fcsusa.localhost with fcsusa.10.10.10.104 in the address bar didnt worked
fcsusa.localhost with 10.10.10.104.fcsusa in the address bar didnt worked
and when i tried to access the localhost of that computer and wrote http://10.10.10.104 it forwarded me to the USA version where as it should have browsed the xampp of the computer and switching the url to something like
"http://10.10.10.104/xampp"
so first of all i tried to make the localhost of that computer to be accessible from the other computers on the network, and to make that work i did the following
added the following line in the HOSTS file
Expand|Select|Wrap|Line Numbers
- 10.10.10.104 localhost
Expand|Select|Wrap|Line Numbers
- <VirtualHost *:80>
- DocumentRoot D:/xampp/htdocs/
- ServerName 10.10.10.104
- </VirtualHost>
regards,
Omer Aslam