Permalink
Browse files

README fixed

  • Loading branch information...
1 parent ceabba1 commit 4f61de9c64bc021fde40ccad7667977254dca944 @matsumotory committed May 10, 2012
Showing with 0 additions and 61 deletions.
  1. +0 −61 README.md
View
@@ -70,64 +70,3 @@ Apache modules can be implemeted by mruby scripts on Apache HTTP Server installe
* access to http://example.com/test.mrb
--------- following readme is old -------
-mod_mruby - to provide an alternative to mod_lua
-
-- Compile
-
-make
-
-- Install
-
-make install
-
-- Settings
-
-cat /etc/httpd/conf.d/mruby.so
- LoadModule mruby_module modules/mod_mruby.so
- mrubyHandler /var/www/html/sleep.mrb
-
-/etc/init.d/httpd restart
-
-- Experiment 1
- cat /var/www/html/sleep.mrb
- require 'Apache'
- Apache.sleep(5)
-
- access to http://example.com/
- sleeping 5 is success.
-
-- Experiment 2
- cat /var/www/html/hello.mrb
- require 'Apache'
- Apache.rputs("<h5>hellow mod_mruby world!</h5>")
-
- access to http://example.com/
- output "hellow mod_mruby world!" by h5 tag on your browser.
-
-- Experiment 3
- cat /var/www/html/syslogger.mrb
- require 'Apache'
- Apache.syslogger("notice", "error!")
-
- access to http://example.com/
- output "error!" on /var/log/syslog
-
-- Experiment 4
- cat /var/www/html/errlogger.mrb
- require 'Apache'
- Apache.errlogger(5, "this is error")
-
- access to http://example.com/
- output "this is error" on /var/log/httpd/error_log
-
- argv1 is the following priority list.
-
- #define APLOG_EMERG 0 /* system is unusable */
- #define APLOG_ALERT 1 /* action must be taken immediately */
- #define APLOG_CRIT 2 /* critical conditions */
- #define APLOG_ERR 3 /* error conditions */
- #define APLOG_WARNING 4 /* warning conditions */
- #define APLOG_NOTICE 5 /* normal but significant condition */
- #define APLOG_INFO 6 /* informational */
- #define APLOG_DEBUG 7 /* debug-level messages */

0 comments on commit 4f61de9

Please sign in to comment.