search for: dirhandler

Displaying 20 results from an estimated 65 matches for "dirhandler".

Did you mean: dirhandle
2006 Aug 07
1
DirHandler in surplus slashing / unrequited unescaping
im using Mongrels to serve up /usr/portage/packages for other gentoo boxen. since i guess im the guinea pig with the DirHandler, ran into a couple issues: first, the client showed no files in the remote binhost, turns out the DirHandler was adding a trailing "/" to every filename, presumably making the client think they were directories, not files. attached is a patch which fixes this behavior.. so now portage g...
2006 Dec 01
2
favicon
im trying to figure out how to serve a favicon.ico for my app, does anyone have a line for Mongrel::Configurator? all i can see is that everyone seems to use the 404 handler...how boring.. uri "/favico", :handler => Mongrel::DirHandler.new(File.dirname(__FILE__)+"/favicon.ico") is sort of close, but it says The image ?http://m/favicon.ico? cannot be displayed, because it contains errors. . puting the favicon into its own dir, means it ends up at /favico/favicon.ico which isnt right either. should i be hacking up the di...
2006 Feb 03
3
Mongrel HTTP Library 0.2.2 (Serving Directories)
Hey Folks, Another announcement of Mongrel -- the fastest little web server library for Ruby yet. This release is nice in that it should build on win32 better and it now sports a small DirHandler that can serve directories and files. This means Mongrel is closer to replacing WEBrick as a Rails debug runner. You can get the releases and information from: * http://rubyforge.org/projects/mongrel/ -- project page * http://mongrel.rubyforge.org/ -- RDoc documentation. == Install and Upgr...
2007 Oct 25
2
Patch for X-SendFile on Windows
A new TRAC entry with patch has been added (initially for Camping) to allow X-SendFile on Windows to use DirHandler to send files on drives other than the current drive, if the DirHandler base path is "/" (which is the way Camping uses DirHandler). As it was, "/" gets expanded to "C:/", and then you can''t serve files on any other drive, which I needed to do recently. And,...
2005 Aug 10
1
BUG: samba-3.0.14a & samba-3.0.20pre2 endless loop AIX 5.3 (jfs2) & Win98
Hi, I have replaced an older AIX system with a new one running AIX 5.3, all the latest patches. It is acting as a PDC (I think irrelevant). The old server was running AIX 4.3.2 with Samba 3.0.14a (upgraded from 2.0.7) , and was working 100% fine. I had the old server running 3.0.14a for 6 weeks prior to the upgrade as part of my migration plan. There are Windows 98 boxes that connect to
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
2009 Feb 17
5
Problems in Compiling MFC
1) i'm facing problem while compiling MFC code when "winemaker" command is given i get these lines admin at XXX:~/.wine/drive_c/windows/system32/MFC> winemaker --lower-uppercase . Winemaker 0.6.0 Copyright 2000 Francois Gouget <fgouget at codeweavers.com> for CodeWeavers closedir() attempted on invalid dirhandle DIRECTORY at /usr/local/bin/winemaker line 1054. closedir()
2007 Aug 10
1
serving static files
It seems that Merb is sending static files with Mongrel::DirHandler. (mongrel_handler.rb:52) if get_or_head and @files.can_serve(path_info) # File exists as-is so serve it up MERB_LOGGER.info("Serving static file: #{path_info}") @files.process(request,response) I haven''t done benchmarks and I''ve hardly glanced at D...
2006 Aug 07
1
DirHandler escaping (patch)
fiddled around a bit and got DirGHandler to work for both files and directories with spaces in them, and plusses in them (on disk). eg: <a href="/files/usr/portage/packages/All/gtk%2B-2.10.1.tbz2">gtk+-2.10.1.tbz2</a><br/> <a href="/files/root/hey+whatsthis+dir">hey whatsthis dir</a> both end up at the right place now.. ..c. --------------
2006 Dec 19
1
mongrel_config has no output
...nt-Type: text/html Content-Length: 0 Connection closed by foreign host. Here is a YAML dump of the $server object: --- &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....
2008 Jan 03
23
deployment survey
...e get a detailed survey of the different ways people are deploying their applications? It will help with near-future Mongrel development. Please include the following things: * Framework, if any (Camping, Merb, Rails, Nitro, Ramaze, IOWA, Rack...) * Mongrel version * Mongrel handlers used (rails, dirhandler, camping, cgiwrapper...) * How many mongrel routes and handlers per route registered (if you don''t know, it''s probably <= 2) * Any Mongrel plugins used (mongrel_upload_progress, mongrel_gzip, mongrel_cow_cluster, mongrel_experimental...) * Mongrel runners used (mongrel_rails, m...
2006 Apr 08
1
Mongrel 0.3.12.4 Pre-Release -- Please Test (Not Win32)
Morning Folks, I have a pre-release of Mongrel 0.3.12.4 up on the releases site that I''d appreciate everyone testing out. This release fixes the following: * Corrects the date format returned so that months are three chars only. * Fixes a problem where DirHandler wasn''t returning Last-Modified and Etag headers for unknown MIME types. * Implements a default mime type for anything it doesn''t know about, and lets you set it via an attribute in DirHandler if you want different. * Cleans up the file serving code in DirHandler a bit. * Relaxes t...
2006 Mar 28
1
Mongrel Web Server 0.3.12 -- Updated, Getting Closer
....3.12 pre-release should dump their current install and re-install: $ gem uninstall mongrel $ gem uninstall gem_plugin $ gem install mongrel --source=http://mongrel.rubyforge.org/releases/ This release fixes a problem with specifying a directory to change to, and fixes the incredibly broken DirHandler code from last night. The big change people will probably notice with static file serving is that IE will seem like it''s flying. This is because the DirHandler properly implements the HEAD and GET requests differently for files, and denies anything else. IE is notorious for spamming web...
2006 Apr 10
0
Mongrel Web Server 0.3.12.4 -- Relaxed Parser, Date Fix
Hello Everyone, Just a small announcement for Mongrel 0.3.12.4 which fixes the following things: * Corrects the date format returned so that months are three chars only. * Fixes a problem where DirHandler wasn''t returning Last-Modified and Etag headers for unknown MIME types. * Implements a default mime type for anything it doesn''t know about, and lets you set it via an attribute in DirHandler if you want different. * Cleans up the file serving code in DirHandler a bit. * Relaxes t...
2004 Oct 25
9
Maildir unreliability
Looks like maildir can't be used very realiably without quite a lot of locking. Writing and scanning the directory would have to be locked, but reading wouldn't (as long as the file hasn't been renamed which would require scanning to find it). So much for "no locks needed".. The problem is that opendir()/readdir() may temporarily not return some files if there has been
2007 Apr 20
2
order of registering uri''s matters for URIClassifier ?
Hi all, I''m playing around with mongrel handlers and I came across a behaviour that seems abnormal to me with regard to the Configurator#uri calls. It appears that order matters. For instance: ... listener do uri "/icons", :handler => DirHandler.new("/var/www/icons") uri "/", :handler => DirHandler.new("/var/app/html") uri "/", :handler => stats end ... with this sort of configuration, any URI that is alphabetically AFTER "/icons" will be short circuited to a...
2006 Jun 20
1
Performance tweak when local files are not served by mongrel
Hello Zed ! I''ve experimented a simple but limited performance tweak in the mongrel rails loader. With the following apache 2.2 mod proxy loadbalancer setup : # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] We can assume that mongrel is called only when the
2007 Dec 10
4
Mongrel and http 1.1 OPTIONS keyword
Hello. I just seen some errors in my mongrel application log: It seems related to the httpd OPTIONS keyword Example: Processing LoginController#login (for .30.5.208 at 2007-12-10 09:00:23) [OPTIONS] and our ruby application does not know what to do with it. and finally send an error Does mongrel (which is the http server) is supposed to deal with these kind of request ? I think these
2006 May 26
2
Plugin Question
...ownloads doesn''t start up the handler. The process method of my handler is never called, I just get a routing error from rails. 2) When I pass in the options to the plugin like this how do I get to the options hash while inside of the process method? Note: I also tried to get just the DirHandler example working and I couldn''t get the server to recognize that path either, so there might be something more sinister going on here. Any help appreciated. If I can get this to recognize my handler I''ll almost have it working. Is there a wiki I could do a writeup on as to how...
2006 Dec 27
3
Multiple DocRoots
I''m wondering if it''s possible to setup mongrel to have multiple document roots? The use case I''m trying to solve is one where I have a library of shared CSS/JS/Images and would like multiple rails application to use them. I have written a proxy controller and added some routes to serve the static files and it works reasonably well, but is extremely slow, because