summaryrefslogtreecommitdiff
path: root/scripts/context/ruby/wwwserver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/ruby/wwwserver.rb')
-rw-r--r--scripts/context/ruby/wwwserver.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/context/ruby/wwwserver.rb b/scripts/context/ruby/wwwserver.rb
index aa6352183..18ea57df1 100644
--- a/scripts/context/ruby/wwwserver.rb
+++ b/scripts/context/ruby/wwwserver.rb
@@ -110,13 +110,14 @@ class Server
#
begin
@httpd = WEBrick::HTTPServer.new(
- :DocumentRoot => @document_root,
- :DirectoryIndex => ['index.html','index.htm','showcase.pdf'],
- :Port => @port_number.to_i,
- :Logger => WEBrick::Log.new(@logfile, WEBrick::Log::INFO), # DEBUG
- :RequestTimeout => @request_timeout,
- :MaxClients => @n_of_clients,
- :AccessLog => [
+ :DocumentRoot => @document_root,
+ :DocumentRootOptions => { :FancyIndexing => false },
+ :DirectoryIndex => ['index.html','index.htm','showcase.pdf'],
+ :Port => @port_number.to_i,
+ :Logger => WEBrick::Log.new(@logfile, WEBrick::Log::INFO), # DEBUG
+ :RequestTimeout => @request_timeout,
+ :MaxClients => @n_of_clients,
+ :AccessLog => [
[ @accfile, WEBrick::AccessLog::COMMON_LOG_FORMAT ],
[ @accfile, WEBrick::AccessLog::REFERER_LOG_FORMAT ],
[ @accfile, WEBrick::AccessLog::AGENT_LOG_FORMAT ],