similar to: Unable to read anything from request.remote_ip

Displaying 20 results from an estimated 3000 matches similar to: "Unable to read anything from request.remote_ip"

2007 Nov 23
4
help! problem with mongrel, request.remote_ip and lighttpd
I have an existing rails application on lighttpd and I am trrying to upgrade to mongrel for the enhanced scalability it offers. I am running mongrel 1.1.1, rails 1.2.5, lighttpd 1.4.13 and ruby 1.8.5 Everything is working great except request.remote_ip returns 127.0.0.1 or 192.168.0.102 (the internal network address of the server running lighty). I''ve seen some older posts about
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails? by TheR -- Posted via http://www.ruby-forum.com/.
2015 May 07
2
Apache 2.2 itk - 404 not found
Hi all, Freshly installed apache 2.2 with httpd-itk (from epel). When I try to access apache's document root from a browser on local network, it always serve me the Apache welcome page, even if I have a index.html and a phpinfo.php file in the /var/www/html folder. If point the browser specifically to http://server/index.html, I get a '404 Not found error'. I'm running CentOS
2015 May 07
3
Apache 2.2 itk - 404 not found
I forgot to mention it. All the files under /var/html are owned by apache:apache On 15-05-07 04:07 PM, Eric Lehmann wrote: > Have you checked the file rights under your document root ? > Your apache group need reading right. > Am 07.05.2015 21:42 schrieb "John" <tuxfed at gmail.com>: > >> Hi all, Freshly installed apache 2.2 with httpd-itk (from epel). When I
2006 Jul 03
1
Apache mod_proxy to mongrel
Hi Guys, I know this is slightly off topic, but it''d be great to get some feedback from anyone who''s using mod_proxy on Apache 2.2 to redircet to a rails app on mongrel. Everything has been running fine generally but a few days back we started getting a gap in the performance between the Apache port and the mongrel port. accessing through port 80 was averaging ten times longer
2008 Jul 28
0
Re: remote_ip always returns 127.0.0.1 (apache)
On Mon, Jul 28, 2008 at 3:09 PM, Luca Scaljery <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > I have my webrick server behind apache (all on the same server). The > problem I have now is that request.remote_ip always returns 127.0.0.1. > So it gets this IP from apache (I guess). How do I get the true client > IP address request.env[
2008 Feb 24
1
Problems with request.remote_ip
Hello everyone, I am trying to use request.remote_ip in my application to log a user''s IP address because I have been having a lot of abuse issues. basically when a user logs I simply call user.update_attribute(:last_ip, request.remote_ip). The problem is that for some reason a lot of people that have recently logged in still have NULL listed as their last_ip in the database, even
2006 May 19
12
Mongrel/Apache and static content
I''m looking for an easy way to have mongrel only serve dynamic railscontent, while letting Apache serve non-Rails content. Unfortunately,it seems that you have to segregate the static content in its ownfolder. That was also the case with the SCGI runner. I used thetrick outlined athttp://comments.gmane.org/gmane.comp.lang.ruby.rails/23347 to managethis. I was curious if a similar
2009 Jun 12
5
Limit Request Body Size (Disallow very large File-uploads)
Hello all, For the last couple of days I was trying to get my Apache/mod_proxy/mongrel setup to limit the size of the request body. The setup is as follows: 1.) Apache acts as a reverse proxy by facilitating mod_rewrite and mod_proxy 2.) Requests for non-static files are passed on to a mongrel_cluster 3.) We use mongrel for our Ruby on Rails application Note that due to some restrictions we are
2006 Mar 29
13
Rails on Mongrel
Hi, After following advice from you good folks, I gave mongrel a try in a cluster design based on the example on the Mongrel website - and it worked right out of the box which is great - and it''s very fast :) I have got a bit stuck though. I have two MS Word files in /public/files/. I can pull back these files no problem but it isn''t sending a mimetype. I think I have two
2015 May 07
0
Apache 2.2 itk - 404 not found
Have you checked the file rights under your document root ? Your apache group need reading right. Am 07.05.2015 21:42 schrieb "John" <tuxfed at gmail.com>: > Hi all, Freshly installed apache 2.2 with httpd-itk (from epel). When I > try to access apache's document root from a browser on local network, it > always serve me the Apache welcome page, even if I have a
2006 Jul 09
3
Mongrel and proxying with Apache 2 mod_proxy
Hi all, I''ve just spent some time going through trying to get mongrel & apache 2.0 working with mod_proxy. I thought I''d share what I''ve found in case someone is going through the same exercise. Of late, I''ve been using mongrel (lovely, btw) to run my rails apps. Since I have a couple of different rails apps running on the machine, I thought it be nice to
2009 Aug 21
2
Requesting a remote ip in plugin
Im creating plugin for limiting the ip, i have included the plugin name in my controller Controller: class AdminController < ApplicationController acts_as_ratelimit def login session[:user_id] = nil if request.post? user = User.authenticate(params[:name], params[:password]) if user session[:user_id] = user.id redirect_to(:controller=>"products", :action =>
2007 Jul 09
7
request.remote_ip
Hi, How can i access to request.remote_ip in a model? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to
2005 Nov 30
1
[lighttpd] proxy.server and url.rewrite-once
i have a very simple lighttpd config that just forwards with mod_proxy some requests to different hosts lixe this: server.modules = ( "mod_proxy", "mod_rewrite" ) server.port = 80 server.pid-file = "/var/run/lighttpd.pid" server.errorlog = "/var/log/lighttpd-err.log" server.document-root = "/var/www/htdocs/"
2012 Dec 06
2
pasenger does not start puppet master under nginx
On the server [root@bangvmpllDA02 logs]# ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] [root@bangvmpllDA02 logs]# puppet --version 3.0.1 and [root@bangvmpllDA02 logs]# service nginx configtest nginx: the configuration file /apps/nginx/nginx.conf syntax is ok nginx: configuration file /apps/nginx/nginx.conf test is successful [root@bangvmpllDA02 logs]# service nginx status
2008 Dec 05
1
page views counter
Hi all, I''ve made a really simple page views counter. def show @post = Post.find...... addcount = @post.views += 1 @post.update_attribute "views", addcount end Its working fine, but if someone hold the F5 key, it keeps counting and counting. Which is not a really good. Is there a way how to force the counter to not keep counting while someone is holding the F5 key? THX
2011 Jul 08
2
Puppetmaster setup with separate CA server configuration help
Hi All, I am setting up puppetmaster with nginx and passenger and separating the Puppetmaster primary CA server. I have 3 host loadbalancer01 - Nginx doing LB on IP address and also running puppetmaster with passenger under 127.0.0.1 (port 8140). primaryca - Puppetmaster Primary CA pclient - Puppet Client The did the following steps: On Primary CA server: ---------------------------- cd
2015 Aug 28
1
apache mysterious 404 error
Hi Robert, It's this: drwxr-xr-x. 2 daemon daemon 4096 Aug 27 12:34 /var/www/mycompanyStore/images Thanks, Tim On Fri, Aug 28, 2015 at 11:17 AM, Robert Wolfe <Robert.Wolfe at malco.com> wrote: > What is the absolute path on the server that /mycompanyStore/images/ is > store in? > > -----Original Message----- > From: centos-bounces at centos.org
2008 Apr 17
0
Error log, when using apache2.2.x modproxy with mongrel
Hi all im new to use mongrel, my mongrel version is 1.1.4 and apache is 2.2.8 when i using apapche+mod_proxy+mongrel, there are some error in my log file and make apache 502 prxoy error. ex: proxy: error reading status line from remote server localhost proxy: Error reading from remote server returned by /test/show But it works well if i access mongrel directly. and the mongrel.log will have