Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache on Windows XP

Status
Not open for further replies.

ryngrav

Programmer
Feb 13, 2006
3
US
I'm currently trying to configure Apache on a Windows XP machine. This machine is on a corporate network and I have tried several times to make it listen to port 80. I have edited the httpd.config file to reflect this or Port and Listen. I'm unable to get to the server any other way than localhost. I've changed the ServerName to show the servers ip. When I do a Netstat -an I don't see the server listening to Port 80 all I see is localhost listening. All firewalls are off and the TCP/IP settings on Windows look right. PLEASE, I hope someone has a suggestion.
 
What does the Listen statement in http.conf say? What about any VirtualHost settings?

Is IIS or some other process binding to port 80 on your network interface?
 
What do you see if you do

telnet ip.add.re.ss 80 <enter>
[stuff comes back]

GET / <enter>
or
GET /myindex.htm <enter>
[ hopefully html comes back ]

Anything is apache error_log or NT eventlog?

Apache running as a service? Kill it and start from command window and watch for error messages.

 
I have tried several different things but I've tried Listen 80 and Listen ip.ad.dre.ss:80. Apache is running and I don't see anything in the error log. I've worked with the Network guys and it just keeps comming back that it's an Apache config problem as far as I can see...I've tried so many different setting in the config and nothing has worked so far. Also, like I said...localhost listens on 80 so could that be taking it up and not letting Apache listen on there too?
 
Just a thought, if you are using SP2 did you poke a hole in the Windows firewall?
 
Exactly what does it say when you "Can't Get To It"?

You didn't say what you got from telnet ip.add.re.ss 80

Is your browser configured to use a proxy? Try it without a proxy. The proxy might not be configured to return "DIRECT"; for internal addresses.

localhost is just an alias name for your machine. It is also equivalent to 127.0.0.1 the local loopback address as well as the ip address of your machine.

Listen 80 should be what you set unless you have multiple ip addresses bound to the machine. Make sure there are no <VirtualHost> directives blocking out an IP

Do ipconfig just to be sure what your real ip address is. Are you using DHCP or a fixed address?

Stop apache and the localhost listening on 80 should also go away.

Make sure there is not another security suite running a firewall. Windows XP has a firewall, and so does Norton, MacAfee. Any service named blackd? (Black Ice Firewall) Open the services applet and start killing services and retrying. It really sound like a firewall or a policy of some sort.

 
Is your router forwarding all http traffic to the server's ip?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top