Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I forward ports on the same Ubuntu machine? I want my webserver be available on 80 and 8880 port.

Or maybe I could making my apache listening not only on 80 port, but also on 8880? Is that possible?

share|improve this question

Just use the Listen directive in your Apache configuration file.

For instance, right now you'll probably have Listen 80, just add Listen 8880 after it:

Listen 80
Listen 8880

and restart Apache.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.