Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for CGI #618

Merged
merged 17 commits into from
Dec 9, 2015
Merged

add support for CGI #618

merged 17 commits into from
Dec 9, 2015

Conversation

kazuho
Copy link
Member

@kazuho kazuho commented Dec 8, 2015

H2O now supports CGI, with the addition of share/h2o/fastcgi-cgi, a daemon that runs as a FastCGI server and spawns CGI scripts.

For example, with this PR it is possible to execute CGI scripts by defining a custom handler for .cgi extension:

file.custom-handler:
  extension: .cgi
  fastcgi.spawn:
    command: "exec share/h2o/fastcgi-cgi"

Still WIP, need to add max proc. restriction, etc.

@kazuho
Copy link
Member Author

kazuho commented Dec 8, 2015

ToDo:

  • export H2O_ROOT from core, so that the spawn command can be defined as: exec $H2O_ROOT/share/h2o/fastcgi-cgi
  • implement max proc. restriction
  • add tests
    • add minimal tests
    • add test using STDIN
    • add test using STDERR

@kazuho kazuho added this to the v1.7 milestone Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant