0

I have written a Python script that currently is designed to handle traditional CGI requests. Of course, this won't scale well as the overheads for each request are great, which is why I'm looking into implementing FastCGI support.

How can I modify my script to work with both CGI and FastCGI? Is there something the script can read from the environment that will identify if it is being spawned as either a traditional CGI request process or a FastCGI process? I don't really want to sacrifice traditional CGI support to implement FastCGI support.

1 Answer 1

2

Program to WSGI and use the flup adapters.

Sign up to request clarification or add additional context in comments.

1 Comment

Or. Better yet. Use mod_wsgi.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.