On Wed, 24 Nov 2004, Fernando Vaz <(E-Mail Removed)> wrote:
> Hi there folks,
>
> I need to run a web server and a FTP server at home, but my ISP in
> theory doesn't allow this, so I need to run both servers on different
> ports (8080 for Apache and some other high-number ports, like
> 10020-10021, for instance, for FTP). What's the best way to do this?
> First thing that came to my mind is to create a set of iptables rules,
> redirecting requests for the correct ports, and setting apache to
> operate in those ports. How do I do this? Any other methods?
> Thnx in advance,
> Fernando Vaz
You can easily configure apache to listen on a different port (see docs
for Port directive). It may also help to set UseCanonicalName off, so
automatic redirects will hopefully include the port. If you shuffle to a
different port coming through your firewall, automatic redirects would
likely NOT work.
See the docs for your ftp server as to how to change its ports.
Note that for either, you would need to include any non-standard port in
the URL, because DNS only has to do with names and IPs, not ports.
|