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.

I'd like to run a server that 'delegates' certain requests to a C++-Script via FastCGI - how can I configure Apache to do so? It would just be enough to redirect requests to a specific page I could define in some config-file, but unfortunately I don't know which and how.

I'd be glad if someone could help - Thanks.

share|improve this question

migrated from stackoverflow.com Oct 24 '12 at 3:20

This question came from our site for professional and enthusiast programmers.

    
Probably better for ServerFault –  Mike Brant Oct 24 '12 at 0:36

1 Answer 1

The canonical way to go, is to simply use a different suffix for the "special" pages and use an AddHandler directive to your apache configuration. Assuming the "special" pages have a suffix of .fcgi you would need

LoadModule fastcgi_module modules/mod_fastcgi.so
AddHandler fastcgi-script .fcgi
share|improve this answer
    
The suffix-solution is definitely possible - didn't expect it to be that simple! I'll try it out, thanks for your help. –  David Oct 24 '12 at 0:46

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.