2

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.

Belgin Fish
  • 919
  • 5
  • 17
  • 31

2 Answers2

3

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.

http://redmine.lighttpd.net/wiki/1/Docs:ModProxy

SparX
  • 1,924
  • 12
  • 10
0

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.

MrTuttle
  • 1,176
  • 5
  • 5