Cannot get links to work from an internal web page within Firefox or IE
Hi All,
I just setup my first Linux box using http://www.howtoforge.com/perfect-se...04-ispconfig-3, everything went along fine except now i have a problem that i cannot seem to solve. Ive set up a webpage on the box for my company's intra-net for testing purposes but i cannot get the links to work. On the server itself all the links work but Firefox still ask me to authenticate with the Adobe Flashplayer (player10), but when i access the page from another computer i have the following issues:- 1. Even though hostname -f shows the a fully qualified domain name i have to use the IP Address eg. 192.168.100.100 2. I can access the page but the links leading to the other pages do not work i get "Webpage cannot be found or the HTTP 404 Not Found" Error Message 3. None of the embedded pictures show up i get the red X. Any help will be greatly appreciated. |
You have to put the correct entry into /etc/hosts to associate the web address with the ip address.
You have to do this on every LAN machine that accesses the server. Alternatively, use relative links instead of absolute links. i.e. use images/pic1.jpg instead of http://www.mydomain.com/images/pic1.jpg But you still need /etc/hosts to use a non-valid domain name internally (inside the LAN). |
Solved
Thank you Smoker,
I do have the ip address associated with the web address in the /etc/hosts see bellow (or at least i think i do) 127.0.0.1 localhost.localdomain localhost 192.168.100.100 ubuntutest.mydomain.com ubuntutest I changed the links to relative links and now everything is fine...again thank you for your help. |
To follow up, i did change the /etc/hosts file on the other machines that access and that resolved the ip address/web address issue, but i still have the other one...just wanted to let you know that it did work
|
All times are GMT -5. The time now is 04:06 AM. |