Thank you very much for your long explanation. May be I was not able to describe the situation clearly as I am not familiar with network jargon.
You are right, I am doing exactly as what you explained here. And all web pages are working. But when I click on any link on my personal web site from PC2, the link goes to http://localhost/mywebpage.html
. But it should have gone to either http://PC1/mywabgepage.html
. But this occurs only for my personal web site. When I browse XAMPP's admin pane, all links in admin pane working very good. It takes me to the right place such as http://PC1/xampp/Phpmyadmin/index.php
It looks like a relative address problem, but this is a professional script for installing on web servers and if it uses an absolute address instead of relative address, no one can reach the webpages. So it shoul be something else. The script and all other files are written in php code.
There is also one DNS server in system (it is a DSL router modem - Speedtouch 510) and it gives uniqe static IP number to the each PC.
Can I redirect all client requests of PC2 to http://PC1
whenever it requests http://localhost
? Or may I rename http://localhost
in DNS server or in somewhere else ?
sorry for such a long long long message.