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

Conversation

Projects
None yet
1 participant
@kazuho
Member

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

This comment has been minimized.

Show comment
Hide comment
@kazuho

kazuho Dec 8, 2015

Member

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
Member

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

kazuho added a commit that referenced this pull request Dec 9, 2015

@kazuho kazuho merged commit 978231b into master Dec 9, 2015

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@kazuho kazuho added the fastcgi label Jan 19, 2016

kazuho added a commit that referenced this pull request Feb 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment