search for: listing_allowed

Displaying 3 results from an estimated 3 matches for "listing_allowed".

2006 Dec 19
1
mongrel_config has no output
...amp;id001 !ruby/object:Mongrel::HttpServer acceptor: !ruby/object:Thread {} classifier: !ruby/object:Mongrel::URIClassifier handler_map: /log: - !ruby/object:Mongrel::DirHandler default_content_type: application/octet-stream index_html: index.html listener: *id001 listing_allowed: true path: /home/michael/hhp/trebleNation/log /favicon.ico: - !ruby/object:Mongrel::Error404Handler listener: *id001 response: |- HTTP/1.1 404 Not Found Connection: close Server: Mongrel 0.3.20 NOT FOUND /config/resources: - !ruby/...
2006 Oct 31
12
Moving page_cache_directory
Howdy. I''m working on a RoR CMS and need cached pages to all be in public/cache rather than public [in order to set svn:ignore on all the files properly]. I can get page_cache_directory set correctly and the pages are cached in the right place but Mongrel isn''t serving them because it''s only looking for them in public. During development I know I can set -r public/cache
2007 Oct 19
0
X-Sendfile, static files, windows
...with this title. I struck the same thing, where the current drive wasn''t the same as the drive I wanted to serve (some) files from. So here''s the patch to add to lib/mongrel/handlers.rb contains class DirHandler. I added two things, first to initialize: def initialize(path, listing_allowed=true, index_html="index.html") @abs = path == "/" # Absolute paths are allowed @path = File.expand_path(path) ... next to method can_serve, which should start with this: def can_serve(path_info) req_path = HttpRequest.unescape(path_info)...