bin/jacana in jacana-0.1.1 vs bin/jacana in jacana-0.1.2

- old
+ new

@@ -12,11 +12,14 @@ :Php_Path => '/usr/bin/env', } rewrite = nil +php_configfile = '.rewriterule' + + opt = OptionParser.new opt.on('-d VAL') do |docroot| options[:Doc_Root] = docroot end @@ -59,9 +62,14 @@ puts "Jagana PHP Handler is Started !" jacana_server = Jacana::JacanaHttpServer.new options + +if File.exist? php_configfile + config = File.read php_configfile + jacana_server.instance_eval config +end jacana_server.a_rewrite /\/(?<url>.*)/, '/index.php' trap 'INT' do jacana_server.shutdown