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

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

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/
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


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.