Displaying 20 results from an estimated 65 matches for "dirhandlers".
Did you mean:
dirhandler
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
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
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:
*
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
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 DirHandler''s code
but the
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
I am not sure what i am doing wrong here, but no matter what i try i get no
output from mongrel_config:
$ mongrel_rails configtool
$ telnet localhost 3001
Trying 127.0.0.1...
Connected to localhost.
Escape character is ''^]''.
GET /config/ HTTP/1.1
HTTP/1.1 200 OK
Connection: close
Date: Tue, 19 Dec 2006 05:33:16 GMT
Content-Type: text/html
Content-Length: 0
Connection closed by
2008 Jan 03
23
deployment survey
Hello Mongrels,
Building on the last messages about Fastthread, can we 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,
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
2006 Mar 28
1
Mongrel Web Server 0.3.12 -- Updated, Getting Closer
Everyone tracking the Mongrel 0.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
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
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 =>
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
I got some advice from Rick last night and started coding this handler
to allow for time-based secure downloading similar to mod_secdownload
that lighttpd offers. I got most of the code in the handler worked out
and packaged into a gem but am still having the following problems:
1) I have a configuration script as follows
require ''mongrel''
config = Mongrel::Configurator.new
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