Forum Moderators: bakedjake

Message Too Old, No Replies

Web Traffic Routing and a small problem.

Problem with apache when redirecting web traffic.

         

vitaliy

12:28 pm on Jun 10, 2002 (gmt 0)



Hello, I run fbsd 4.5 with Apache web server. I have a cable modem and the box that is used for developing my web stuff is on my local intranet. I connect to a router and I have redirected the ports, so people can browse my site. The redirection is simple, it redirects router.ip:80 to my.host.ip:8000. However, Apache says that there is a problem with resolving 'localhost' name of my computer and it fails to display the site. What should I reconfigure? Thank you!

David

4:50 pm on Jun 10, 2002 (gmt 0)

10+ Year Member



Welcome Vitaliy

Do you have Apache listening on port 8000 ?
You would check that in your httpd.conf file.

you also might want to check your hosts file to be sure your host name is there.

vitaliy

5:10 pm on Jun 10, 2002 (gmt 0)



Okay, here is what I have in my /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.25 dhcppc2.bur.adelphia.net w3

My httpd.conf listens on port 8000 and ServerName is set to w3.

littleman

5:49 pm on Jun 10, 2002 (gmt 0)



Okay a couple of questions.
Are you only trying to get people from within your local network to view your pages?
When you type in my.host.ip:8000 does it load okay in a browser?

vitaliy

6:17 pm on Jun 10, 2002 (gmt 0)



Actually I would like people from both in and outside my LAN to access my site. I have set up the router to redirect traffic that goes to router.ip:80 to my.host.ip:8000. It locates my host, but can't view the site, it complains about not being able to resolve 'localhost'.

David

6:39 pm on Jun 10, 2002 (gmt 0)

10+ Year Member



>>When you type in my.host.ip:8000 does it load okay in a browser? >>

Can you view pages locally if so what do you type in the browser ?

startup

4:14 pm on Jun 11, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



192.168.0.25 dhcppc2.bur.adelphia.net w3

Are you still using 192.168.1.1 for the default IP address?

vitaliy

5:14 pm on Jun 11, 2002 (gmt 0)



No, I have changed it. I 've solved the problem, apparently a linksys router would not let me access my web site via external IP....