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
- HTTP server H2O version 2.1.0 later
- Using DSL for access control list (acl)
git clone https://github.com/thingsym/h2o-mruby-wordpress
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
git remote add upstream https://github.com/thingsym/h2o-mruby-wordpress
git fetch upstream
git merge upstream/master
systemctl reload h2o
- fork it
- develop the mruby you want
- create a pull request
Written in mruby and licensed under the MIT License.