Displaying 20 results from an estimated 66 matches for "path_info".
Did you mean:
auth_info
2006 Jul 25
4
about PATH_INFO and FastCGI
in one of my recent email, I add .to_s to PATH_INFO in camping code.
actually, this is probably very wrong. the problem is probably something
like PATH_INFO does not exist when using FastCGI.
I have not done all my homework, but so far what I found is lighttpd has a
special option
"broken-scriptfilename": breaks SCRIPT_FILENAME in a wat...
2006 Nov 13
6
mongrel_upload_progress question/possible suggestion
Hey all,
First off, thanks to Rick Olson and whoever else was involved with this
plugin... It''s been amazingly easy to implement.
I''ve got a question about the path_info parameter, though... It seems that
unless the request PATH_INFO exactly matches the path_info passed in to the
plugin at inclusion, it won''t actually trigger Add and add the upload to the
list of running transfers. I''m assuming that this is for performance
reasons, and makes good...
2006 Jul 28
0
URL root/serving more than one app per subdomain
...Yesterday as I was setting this up, I managed to get it to work by
hacking Mongrel itself. i added a "-u" (--urlroot) flag to
mongrel_rails, added a @urlroot variable to the RailsHandler, and
added the following lines to change the request path:
In rails.rb/RailsHandler#process
path_info = path_info[@urlroot.length, path_info.length-
@urlroot.length] unless @urlroot.nil? or path_info[0, at urlroot.length]!
=@urlroot
and in handlers.rb / DirHandler#process
path_info = request.params[Const::PATH_INFO]
path_info = path_info[urlroot.length,path_info.length-
urlroot.length] unless...
2007 Mar 09
1
how to translate request.params[''PATH_INFO''] into physical file
Hi,
What''s the most reliable way to find out the physical file location when
given a request.params[''PATH_INFO''] ?
I guess I need to know mongrel''s document_root or something similar.
tia,
Jeroen
2006 Jun 17
2
URL based on acts_as_tree using routes
....
http://localhost/what-we-do/products/our-great-cms/features/faqs/
So, as many sub-nodes the user creates, that''s how long the URL gets to be.
Now, it would be great in routes.rb if you just specify a model for
the URL to act as, but the only way I thought of doing this was to
take the path_info manually and splitting the URL by the / into an
array and loop through the array to ensure that all of the nodes along
the way exist.
Here is a route that I am playing with now:
map.connect '':controller/:action/:id''
map.connect ''*path_info'', :controller => &...
2019 Oct 31
4
PHP FPM issue
...>
> > thanks
> >
> > ---
> > Thomas Stephen Lee
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > https://lists.centos.org/mailman/listinfo/centos
>
> The simplest is to conditionally set PATH_INFO if it's not empty:
>
> fastcgi_param PATH_INFO $fastcgi_path_info if_not_empty;
>
> Another option is to explicitly test whether the fastcgi script path
> exists :
>
> if (!-f $document_root$fastcgi_script_name) {
> return 404;
> }
>...
2007 Dec 28
6
Arbitrary system files readable in 1.0.4 - 1.1.2
...apps that was running
Mongrel 1.1.2 where I could go to URIs like
/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/.%252e/etc/passwd and it
would serve the actual /etc/passwd file.
The issue seems to be in lib/mongrel/handlers.rb in the change from
1.0.3 to 1.0.4
req_path = HttpRequest.unescape(path_info)
- if @path
- req_path = File.expand_path(File.join(@path, path_info), @path)
- else
- req_path = File.expand_path(req_path)
- end
-
- if req_path.index(@path) == 0 and File.exist? req_path
- # it exists and it''s in the right location
+ # Add t...
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 comment on DirHandler#send_file bothers m...
2007 Feb 23
0
Mongrel::Uploads.check() not returning status
...oblem):
map.upload "upload/:upload_id",
:controller => "file",
:action => "upload"
And here''s my config/mongrel_upload_progress.conf file:
uri "/",
:handler => plugin("/handlers/upload", :path_info => ''/file/upload''),
:in_front => true
My form was sending to :controller => file, :action => upload. Well,
the route turned this into "/upload/xxxxxxx", and this didn''t match
the path_info "/file/upload".
Once I removed the route...
2019 Oct 31
4
PHP FPM issue
Hi,
what is the workaround for this?
https://www.nginx.com/blog/php-fpm-cve-2019-11043-vulnerability-nginx/
in either CentOS 7 or 8 ?
thanks
---
Thomas Stephen Lee
2012 Dec 18
2
cache-busting non-digest assets in sprockets in development a good idea? should headers in sprockets be configurable?
...alias_method :sprockets_headers, :headers
def headers(env, asset, length)
sprockets_headers(env, asset, length).tap do |headers|
# cache-bust .html assets because in our case they are frequently
AngularJS templates we need to tweak
if !path_fingerprint(env["PATH_INFO"]) &&
asset.pathname.basename.to_s[''.html'']
headers["Cache-Control"] = "max-age=0, private, must-revalidate"
end
end
end
end
end
end
Would the ability to configure "Cache-Control" and other head...
2007 Oct 19
0
X-Sendfile, static files, windows
...gs, 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)
# Add path prefix, except to absolute Windows paths:
req_path = File.join(@path,req_path) if (!@abs || req_path =~ %
r{\a[A-Z]:[/^\\]}i)
# Expand it to an absolute path:
req_path = File.expand_path req_path
if F...
2006 Sep 20
0
boy, that mongrel_upload_progress handler sucks!
...ket, dispatcher)
dispatcher.request_aborted(params) if @body.nil? && dispatcher
end
alias_method :initialize_without_abort, :initialize
alias_method :initialize, :initialize_with_abort
end
Set up the handler
uri "/", :handler => plugin("/handlers/upload", :path_info => ''/upload''),
:in_front => true
# add the callback to the actual handler.
::Upload.class_eval do
def request_aborted(params)
return unless params[''PATH_INFO''] == @path_info &&
params[Mongrel::Const::REQUEST_METHOD] == ''POST&...
2005 Mar 08
15
Rails 0.10.1and WEBrick
Doesn''t appear to work with WEBrick. Works find with Apache/FastCGI.
Something wrong in the way Rails is trying to process paths from the
WEBrick server. If I try to send in http://localhost:3000/recipes/new,
WEBrick is interpreting /new as my controller, instead of my action.
2006 Jul 24
18
difference between running unabridged
22 sudo mv camping.rb camping-abridged.rb
23 sudo mv camping-unabridged.rb camping.rb
when running into problems, the abridged version of camping is rather
difficult to debug.
so I''m moving to unabridged, but I''m getting this error.
[Mon Jul 24 15:50:18 2006] [error] [client 192.168.11.100]
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks,
There''s a nasty little bug in 0.3.13.3 when running in development mode
which could cause all sorts of problems.
Please grab the pre-release of 0.3.13.4 and tell me if it works for you:
gem install mongrel --source=http://mongrel.rubyforge.org/releases/
Thanks!
--
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.railsmachine.com/ -- Need
2006 Jul 25
3
+ camping 1.4.140 -- apache+fastcgi, lighttpd+fastcgi
...> "/usr/local/www/data/examples.rb",
"bin-environment" => ("FORCE_ROOT" => "1"),
"check-local" => "disable",
"max-procs" => 1 ) ) )
Notice the FORCE_ROOT setting. When you mount at "", PATH_INFO breaks. Lots of
other web framework just use SCRIPT_NAME everytime lighttpd is found (see:
Jifty, Catalyst.) I don''t want to do that, it''s unpredictable.
Mount at "" and use FORCE_ROOT. DO NOT MOUNT AT "/".
== Mounting Root for Apache2+FastCGI ==
AddHan...
2005 May 23
16
Success - Rails, FastCGI, and IIS / Windows Server
About 17:00 localtime I managed to get fastcgi,
Rails and IIS all happy together.
Upon success I ripped off my clothes and ran through
the village yelling "The future is now!". A PDP-11
geezer stuck his head out a window and said "The future
isn''t what it used to be and keep yer shirt on".
Modifications were required to dispatch.fcgi and request.rb.
The following
2019 Oct 31
0
PHP FPM issue
...ility-nginx/
>
> in either CentOS 7 or 8 ?
>
> thanks
>
> ---
> Thomas Stephen Lee
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
The simplest is to conditionally set PATH_INFO if it's not empty:
fastcgi_param PATH_INFO $fastcgi_path_info if_not_empty;
Another option is to explicitly test whether the fastcgi script path
exists :
if (!-f $document_root$fastcgi_script_name) {
??????????????????????????????? return 404;
}
--
Marius
2019 Oct 31
0
PHP FPM issue
...s
>>>
>>> ---
>>> Thomas Stephen Lee
>>> _______________________________________________
>>> CentOS mailing list
>>> CentOS at centos.org
>>> https://lists.centos.org/mailman/listinfo/centos
>> The simplest is to conditionally set PATH_INFO if it's not empty:
>>
>> fastcgi_param PATH_INFO $fastcgi_path_info if_not_empty;
>>
>> Another option is to explicitly test whether the fastcgi script path
>> exists :
>>
>> if (!-f $document_root$fastcgi_script_name) {
>>...