[thelist] apache linux web service ports
j.d. welch
so.there at showtunepink.com
Tue Dec 3 20:44:01 CST 2002
On Tuesday, December 3, 2002, at 08:52 PM, Joel Canfield wrote:
> --
> [ Picked text/plain from multipart/alternative ]
> I'm playing with apache on my linux box, and I'd like to be able to
> hit it
> from the Real World. My firewall will allow me to redirect external
> requests
> by protocol or by port. Since my primary web server already gets all
> http
> requests, and my mail server gets smtp/pop3 requests, can I configure
> apache
> to respond to a different port for http and smtp requests?
it's pretty easy in apache. in httpd.conf, search for and add/edit the
following values:
Listen 8080 (or whatever port you wish)
[and later down the file]
Port 8080
if you want that as the default (i.e. the "main server configuration"
bit). you can also do it by adding the Listen directive and then
something like this
<VirtualHost 127.0.0.1:8080>
DocumentRoot [your document root]
Port 8080
[etc]
</VirtualHost>
if you wanted to, say, have several ports responding, serving different
things. there's various ways to tweak it, but i hope that helps. not
sure about the smtp traffic, tho...
-jd
More information about the thelist
mailing list