Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

right now the script I'm running isn't fully functional with lighttpd, and some processes still need to be run by apache.

therfore, i was wondering if anyone could tell me how to use apache to handle cgi-bin requests on port 81 or 8080 and lighttpd on port 80.

share|improve this question
up vote 3 down vote accepted

You need to change the apache port to 8080 or 81 (In main conf and also in VirtualHost) and then enable mod_proxy in lighttpd server.modules section. You can then define proxy.server section to forward particular requests to apache.

share|improve this answer
You can use any unused port. 8080 or 81, its upto your choice :) – SparX Jul 19 '11 at 0:11

Remove the "Listen 80" and subsequent VirtualHost definitions from Apache, and then configure lighthttpd to run on port 80. Note that you'll probably have a rough time maintaining session state between the two instances, but maybe that isn't a requirement for you.

share|improve this answer
so would i change it to listen 81? / listen 8080? – Belgin Fish Jul 18 '11 at 23:20

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.