mookjp/pool — pull request #18 by takahi-i (2014-09-05 10:04:15+00:00)
Title: Fix not found error when users access expected urls

In my environment, when i access the url for the sample web application (http://c8f48c60088bbae0d0fb25ed5fd04f4442b58617.pool.dev/ ), browser (Chrome) reply Not Found error (404).

In the vagrant instance i found the following errors in /var/log/httpd/error_log.

[Fri Sep 05 08:46:43 2014] [notice] AH05003: mod_mruby mod_mruby_init: mod_mruby / 1.4.1 mechanism enabled.
[Fri Sep 05 08:46:43 2014] [notice] Digest: generating secret for digest authentication ...
[Fri Sep 05 08:46:43 2014] [notice] Digest: done
[Fri Sep 05 08:46:43 2014] [notice] AH05003: mod_mruby mod_mruby_init: mod_mruby / 1.4.1 mechanism enabled.
[Fri Sep 05 08:46:43 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
mkdir: cannot create directory `/app/images': Permission denied
[Fri Sep 05 08:58:11 2014] [error] mod_mruby ERROR ap_mrb_raise_error: mrb_run failed: [TYPE: FILE] [CACHED: DISABLE] mruby raise: /app/handlers/hook.rb:60: Could not open file (/app/images/ids) (File::F
ileError)
[Fri Sep 05 08:58:11 2014] [error] [client 192.168.20.1] File does not exist: (null)
mkdir: cannot create directory `/app/images': Permission denied
[Fri Sep 05 08:58:14 2014] [error] mod_mruby ERROR ap_mrb_raise_error: mrb_run failed: [TYPE: FILE] [CACHED: DISABLE] mruby raise: /app/handlers/hook.rb:60: Could not open file (/app/images/ids) (File::FileError)
[Fri Sep 05 08:58:14 2014] [error] [client 192.168.20.1] File does not exist: (null)
mkdir: cannot create directory `/app/images': Permission denied

This issue fix the not found error adding a /app/images directory and /app/ids file in the vagrant image.