Disable httpd use of port 80 on specific IP?

bozieboz

Registered
Mar 11, 2004
4
0
151
On a certain IP on my server, I want another program (SHOUTcast) to use port 80.

How do I go about disabling the httpd service for a certain IP/port?

Thanks,
-Brian
 

carluk

Well-Known Member
Sep 2, 2003
162
0
166
Have you tried installing it on the server and seeing if it will run? Come across any errors?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
31
473
Go on, have a guess
How do I go about disabling the httpd service for a certain IP/port?
Make sure that you don't have any VirtualHosts using the IP address and that you have noe NameVirtualHost entries for it either in /etc/httpd/conf/httpd.conf
 

bozieboz

Registered
Mar 11, 2004
4
0
151
When I try to start my SHOUTcast server on that IP address, using port 80... I get an error (from SHOUTcast) that there is something already using that port.

When I shut down httpd, I can start SHOUTcast just fine on port 80, but then httpd fails to start.

There is nothing specifically set for that IP address (66.103.144.146) in httpd.conf. It looks as if CPanel is catching all requests to any of my ip's... whether they are assigned or not.

Any way to disable this?

-Brian
 

Norman

Well-Known Member
Sep 20, 2004
88
0
156
Apache binds to port 80 by default.. then from under that the VHosts are delegated.. yo ucan always add a new port the vhosts for any domain..

but by default I believe that apache will bind to port 80 for standard requests..

this would be found in the httpd.conf file

#
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 80
 

bozieboz

Registered
Mar 11, 2004
4
0
151
Norman said:
Apache binds to port 80 by default.. then from under that the VHosts are delegated.. yo ucan always add a new port the vhosts for any domain..

but by default I believe that apache will bind to port 80 for standard requests..

this would be found in the httpd.conf file
So. To have apache *not* listen to port 80 for that certain IP, I should set up a vhost for that IP and assign a port other than 80?
 

Norman

Well-Known Member
Sep 20, 2004
88
0
156
Well the main apache standalone server will always bind to that port in httpd.conf when you start apache, regardless of what you got in your VirtualHosts.

Like chirpy said, read the doc ont he Bind command and see if that helps any..