Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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.

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

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

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
add comment

Your Answer

 
discard

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.