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.

2 Answers 2

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

1
  • You can use any unused port. 8080 or 81, its upto your choice :)
    – SparX
    Jul 19, 2011 at 0:11
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.

1
  • so would i change it to listen 81? / listen 8080? Jul 18, 2011 at 23:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .