httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <>
Subject Re: 2 httpds on 1 server
Date Tue, 11 Dec 2001 09:51:27 GMT
Michael Reutter wrote:
> hi,
> for testing a scenario:
> my webserver (a single machine) has ONE name ("webserver"), but TWO IPs ( -
the DNS returns them rotational).
> (in the future I should have two or three machines ...)
> is it possible to let one apache run on port 8080 and the second on port 8090.
> when a request goes to "" it goes to port 8080
> when a request goes to "" it goes to port 8090

Ummm... I think you're a bit mixed up about TCP/IP. Apache is passive,
it listens for requests on defined IP addresses and port pairs. You can
make apache listen to any address and port using the Listen directive:

  VH directives...

However, the default port for HTTP is port 80 so the browser (which is
active) will send its request to port 80 - unless you want to put
"http://webserver:8080/" in all links to your site.

Note that since you are using different IP addresses, you can use the
same port for both virtual hosts. Defining a different IP address AND
port number for different VHs is overkill.

If you want that: ->

then you need to do address translation *before* you hit apache. That
means a firewall.


Owen Boyle.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message