Skip to content

thingsym/h2o-mruby-wordpress

Repository files navigation

H2O mruby WordPress

mruby libraries for WordPress Application Server

  • admin-user-login.rb
  • cache-control.rb
  • comment.rb
  • directory-traversal.rb
  • filesystem.rb
  • referer.rb
  • remote-address.rb
  • user-agent.rb
  • wp-admin.rb
  • wp-json.rb
  • xmlrpc.rb

Required

Installation

git clone https://github.com/thingsym/h2o-mruby-wordpress

Configuration settings

edit /etc/h2o/h2o.conf

hosts:
  "localhost:443":
    paths:
      "/":
        mruby.handler-file: /path/to/h2o-mruby-wordpress/filesystem.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/directory-traversal.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/remote-address.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/wp-admin.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/user-agent.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/referer.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/cache-control.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/wp-json.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/xmlrpc.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/comment.rb
        mruby.handler-file: /path/to/h2o-mruby-wordpress/admin-user-login.rb
        file.dir: /var/www/html
        redirect:
          url: /index.php/
          internal: YES
          status: 307

The upstream repository fetch & merge

git remote add upstream https://github.com/thingsym/h2o-mruby-wordpress

git fetch upstream
git merge upstream/master

systemctl reload h2o

Contribution

  • fork it
  • develop the mruby you want
  • create a pull request

License

Written in mruby and licensed under the MIT License.

About

mruby libraries for WordPress Application Server (HTTP server H2O)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages