LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   View my site on network with url, not the local ip# (https://www.linuxquestions.org/questions/linux-networking-3/view-my-site-on-network-with-url-not-the-local-ip-141294/)

neyoung 02-02-2004 04:14 AM

View my site on network with url, not the local ip#
 
ok, I have my linux box and my windows box behind a linksys router. The linux box is setup with apache and the router has port 80 forwarded to the linux box. The only way that I can view my site on my network is by using the local ip #. I would like to be able to use the url to my site to view the page instead of the local ip. Is this posible, could it be a setting on my router?

Thanks a bunch,
Nick

Pcghost 02-02-2004 11:33 AM

Do you have an entry in /etc/hosts resolving the ip and hostname of your linux box? If not, that is the first thing I would do. Then check network neighborhood on the windows machine to see if the Linux box appears correctly. At that point point your web browser to //compname/pagename.html and you should be set.

Additionally, you can also set the same entry (for the linux box), in /winnt/system32/drivers/etc/hosts on the WinXP machine. That should cure any resolving issues the machine may be having.

neyoung 02-02-2004 05:17 PM

Thanks that worked great! Just how I wanted it to work.

Pcghost 02-02-2004 08:51 PM

Anytime. Welcome to LQ. :-)


All times are GMT -5. The time now is 11:20 AM.