Apache and multiple listening ports

Apache and multiple listening ports

Post by Jake » Mon, 16 Jan 2006 06:18:37



Can Apache be configured to listen on multiple ports and serve
different pages based on which port the request was received on? (i.e.
could you run a regular web page on port 80 and then a configuration
page for the server on port 8080?)
 
 
 

Apache and multiple listening ports

Post by Dan » Mon, 16 Jan 2006 07:07:58



> Can Apache be configured to listen on multiple ports and serve
> different pages based on which port the request was received on? (i.e.
> could you run a regular web page on port 80 and then a configuration
> page for the server on port 8080?)

Yes.

--
If you're not on the edge, you're taking up too much space.
Linux Registered User #327951

 
 
 

Apache and multiple listening ports

Post by Michael Heimin » Mon, 16 Jan 2006 07:14:18



Quote:> Can Apache be configured to listen on multiple ports and serve
> different pages based on which port the request was received on? (i.e.
> could you run a regular web page on port 80 and then a configuration
> page for the server on port 8080?)

Some apache related ng would be probably better suited then coln.
To answer your question: Yep, simply setup some virtual host to
listen on the specified port. See apache docs on how to go about
it.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)

#bofh excuse 255: Standing room only on the bus.

 
 
 

Apache and multiple listening ports

Post by Jake » Tue, 17 Jan 2006 11:01:11


Thanks for the help!
 
 
 

1. apache listen to port 80, another standalone apache+modssl listen port 443, not working..?!

Hi,

I have setup a 'main' apache which listen to port 80.
And setup another copy of apache+modssl listen to port 443, this
apache+modssl failed to start .?!

Error message: "/bin/apachectl start: httpd (pid 76190) already
running"

Error saying that the 'main' apache is running so this apache+modssl
cannot be started..?

Any idea?

Thanks

-qaz

2. BinHex 4.0 algorithm

3. Apache: server needs to listen to multiple ports

4. Where to get x3270 for Solaris2.x

5. Apache 2 on AIX slow listening on multiple ports

6. graphical interface - far from console

7. Apache: problem with listening to multiple ports

8. bottom half???

9. Descriptor passing? (was: One listen port, multiple ...?)

10. multiple hosts and multiple ports in apache 1.1.1

11. Can an NCSA server listen to multiple ports?

12. multiple listens on same port

13. How to make a deamon listen to multiple ports