pbreah
February 4th, 2008, 12:53 PM
I have 2 PCs:
One has Ubuntu and the other Windows Vista.
The purpose of the Ubuntu PC is to serve as a testing Web server. The other Windows Vista PC is to do the actual work of development.
I can access the Web server on the local network network by typing in my browser (on the Windows Vista PC):
http://192.168.2.19/pathtoWebsite/
The problem is the path to the images, css files and links are not correct when viewed on the windows pc
All the paths to the images and links start with: http://localhost/.. some start with a relative paths: /default/images/...
The end result is a page that renders incorrectly. The only way that the Website renders correctly is by opening the Website on the same server.
Please advice how to make the LAN Web Server render correctly on any computer on the local network, not just on the same server.
Thank you.
One has Ubuntu and the other Windows Vista.
The purpose of the Ubuntu PC is to serve as a testing Web server. The other Windows Vista PC is to do the actual work of development.
I can access the Web server on the local network network by typing in my browser (on the Windows Vista PC):
http://192.168.2.19/pathtoWebsite/
The problem is the path to the images, css files and links are not correct when viewed on the windows pc
All the paths to the images and links start with: http://localhost/.. some start with a relative paths: /default/images/...
The end result is a page that renders incorrectly. The only way that the Website renders correctly is by opening the Website on the same server.
Please advice how to make the LAN Web Server render correctly on any computer on the local network, not just on the same server.
Thank you.