Displaying 20 results from an estimated 8000 matches similar to: "X-Sendfile, static files, windows"
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
2006 Mar 26
4
select information from sqlite_master error
Hi,
I''m having fun playing around with Camping...I am slowly working on extending tepee to a personal e-notebook sort of tool (never lose my papers/revisions....hehe).
I''ve given tepee an oswd css design, and am currently adding a admin page that I want to show the ruby version, sqlite version and db size and db stats information.
I tried running:
@db_stats =
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
2007 Mar 12
3
threading and concurrency
hello all. ive come to the point where im thinking about deploying my ''rails on rails'' app-development solution built in camping.
mainly, im wondering what the barriers to thread-safety are.
for db, i use redland, and afaik it spawns a single db connection for each find, and keeps a pool around to reuse. iow, no ActiveRecord.
are class-vars a problem? theres one that
2006 Oct 05
1
+ camping and mongrel issues
I''ve been having some trouble with certain apps under Camping with Mongrel,
particularly when lots of static files get served. So, I''ve borrowed some ideas
from the RailsHandler and tightened up the Mongrel::Camping classes which come
with Mongrel.
If you''re having any troubles or want to test it out, update from Mongrel SVN
and then `rake install`. It should produce
2007 Jun 19
1
Reloader paths/
after investigating why the reloader wasnt working , i discovered 2 probs, one of which was sorta my fault (but will likely happen to others who make one-file apps)
first, my app was like this:
#!/usr/bn/env ruby
%w{applib1 applib2 digest/md80 airbus}.each{|r| require r}}
if __FILE__ == $0
Mongrel.config do
handler ''/'', Camping.reloader.new(__FILE__)
end
end
not
2007 Mar 13
18
Daemonizing a camping server
I''m having no luck trying to daemonize mongrel running a camping server.
When mongrel daemonizes, I get:
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:723:in
`accept'': closed stream (IOError)
from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:293:in
`join''
...
(This was after I disabled the unhandled exception catchall in the
2007 Jun 21
1
x-sendfile horrendously slow?
I''m using Camping (though I suspect this applies to RoR just as well,
and if you have an RoR specific answer I''d be happy to hear it, I may
switch) to do a number of things for an internal application, one of
which is transferring large files (~2GB each) between machines over the
network. I thought the easy route would just be to make an app that
when given the filename, serves
2006 Nov 25
5
Newline problem
Hello all,
Recently I have started writing some small package apps. The main app
I''m working on at the moment is Camping/Photos[1]. Here I use
a controller to serve static files (Theme[3]) that I have copied from [2].
There seems a problem however, when using this via lighttpd. All files
that get served (via photos-dispatch.rb) get an extra ''\r\n'' in front.
This
2006 Jul 28
1
multipart/form-data support for Camping Apache/FastCGI
sorry I broke it for mongrel, but the programmer who did the work for
mongrel should not have much problem integrating the two I think. Apache/CGI
is different and still will not work.
I fuck around for a full day at the end of the day, I found Iowa another web
framework and I try using their code
but using Iowa::Request.new.read_multipart was more confusing than anything,
although it helped me
2007 Oct 19
0
X-Sendfile, static files, windows
Jeremy,
I found your old message 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")
2007 Jan 25
4
X-Sendfile doesn''t work
Hi everyone,
I try to use the "X-Sendfile" header, but it doesn''t work as expected.
In my controller:
path = "/home/bruno/file.tar.gz"
headers[''X-Sendfile''] = path
headers[''Content-Type''] = "application/octet-stream"
headers[''Content-Length''] = File.size(path)
render :nothing => true
When I request
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,
2008 May 21
32
Rack, Camping 2.0++
===
1. Camping on Rack
===
I''ve just finished rewriting Camping to use Rack in the "core". I got rid of
(a little less) than 1kB in camping.rb and removed lots of un-necessary files
(lib/server/*.rb, fastcgi.rb & mongrel.rb).
bin/camping does now only provide WEBrick, Mongrel and console-support and
should only be used in development. It uses Rack::ShowExceptions to catch
2007 Feb 18
1
FastCGI without ScriptAlias
Hi,
I made some experiments with the sample blog application, my index.fcgi
file contains the following:
require ''camping/fastcgi''
Camping::Models::Base.establish_connection(
:adapter => ''sqlite3'',
:database => ''database/camping.db''
)
Camping::FastCGI.serve(''blog.rb'')
Without ScriptAlias the application works fine,
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
2012 Apr 06
1
lighttpd + fastcgi + camping
Hello all,
I am running in some little stumbling blocks with passenger as a multi user
environment (the most problematic feature is that, once you setup a
sub-domain passenger wants you to declare on nginx every app running on
that nginx server which is not ideal to add apps on the fly and / or if a
user wants to run 2 apps from his space)
so I was thinking about a more drag a drop / one line
2007 Feb 27
5
Camping on Dreamhost - Please Help!
Hi Folks,
I''ve been trying to get camping up and running on dreamhost for the
past six hours, but have had no success. I''d really appreciate any
suggestions!
The camping gem is on the dreamhost server, but just to make sure it
wasn''t a dependency issue causing all the problems, I installed
camping + the full set of dependencies in my own gem directory (both
are on the
2007 Jul 30
1
Camping Apache2 & FCGI - Internal Use
Hey Folks,
I''m deploying a camping app on an internal Apache2 + FastCGI server at my
office. Of course, on my Mac it works great, but I can''t get things to work
with Apache and FCGI. I''ve followed the directions on why''s page
documenting how to do this, but I''m getting the following error in my Apache
error.log file:
FastCGI: (dynamic) server
2006 Oct 28
4
Mounting an app as ''/'' under Apache?
Hello everyone, I have a site with a collection of camping apps. I''m trying
to force one of them, blog.rb, to run as the index (''/'').
I think that I understand the RDoc as stating that I can execute the
following to make that happen:
Camping::FastCGI.serve File.expand_path(current), Blog
But, when doing so, I recieve the following error:
Camping