search for: http_x_forwarded_for

Displaying 18 results from an estimated 18 matches for "http_x_forwarded_for".

2007 Nov 23
2
Unable to read anything from request.remote_ip
For some users, request.remote_ip always return nil. According to the RAILS''s help: REMOTE_ADDR is the standard but will fail if the user is behind a proxy. HTTP_CLIENT_IP and/or HTTP_X_FORWARDED_FOR are set by proxies so check for these before falling back to REMOTE_ADDR. HTTP_X_FORWARDED_FOR may be a comma- delimited list in the case of multiple chained proxies; the first is the originating IP. The system is running on the Mongrel Cluster behind Apache 2.2 with # mod_proxy, mod_proxy-html, a...
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
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 May 30
0
Headers munged into RAW_POST_DATA
...X_FORWARDS : 10 * HTTP_REFERER : https://foo.com/ad_keywords/new?ad=5&cid=7 * HTTP_USER_AGENT : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 * HTTP_VERSION : HTTP/1.0 * HTTP_X_BROWSER_TIMESTAMP: 386789 * HTTP_X_FORWARDED_FOR : xx.xxx.xxx.xxx * HTTP_X_FORWARDED_HOST : foo.com * HTTP_X_FORWARDED_PROTO : https * HTTP_X_FORWARDED_SERVER : foo.com * HTTP_X_NAVID : f5c-50cfb * PATH_INFO : /ad_keywords/new * QUERY_STRING : cid=7&ad=5&ct= * RAW_POST_DATA...
2007 May 29
1
Headers munged into RAW_POST_DATA
...S : 10 * HTTP_REFERER : https://foo.com/ad_keywords/new? ad=5&cid=7 * HTTP_USER_AGENT : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 * HTTP_VERSION : HTTP/1.0 * HTTP_X_BROWSER_TIMESTAMP: 386789 * HTTP_X_FORWARDED_FOR : xx.xxx.xxx.xxx * HTTP_X_FORWARDED_HOST : foo.com * HTTP_X_FORWARDED_PROTO : https * HTTP_X_FORWARDED_SERVER : foo.com * HTTP_X_NAVID : f5c-50cfb * PATH_INFO : /ad_keywords/new * QUERY_STRING : cid=7&ad=5&ct= * RAW_POST_DATA...
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/.
2006 Apr 01
0
0.3.12.1 Quick Bug Fix Pre-Release
...configuring the stuff it needs. This means you can use any of the function calls in Configurator or RailsConfigurator to augment the default Mongrel setup. This lets you register your own handlers, load different plugins, etc. * It populates the REMOTE_ADDR header now but more intelligently. If HTTP_X_FORWARDED_FOR is available, then it uses that, otherwise it gets the remote IP from the socket. This means that when Mongrel is behind a proxy server it will use the connecting client''s IP rather than the proxy server''s, but when you run it directly it will report the actual remote client. * I...
2005 Jun 26
0
Bug in Mailman version 2.1.5
.../var/mailman/cgi-bin/confirm SERVER_ADMIN root@localhost HTTP_HOST lists.digium.com MAIL_CONFIG /etc/postfix2 REQUEST_URI /mailman/confirm/asterisk-users HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 GATEWAY_INTERFACE CGI/1.1 HTTP_X_FORWARDED_FOR 165.146.60.222, 196.25.253.14 REMOTE_PORT 49973 HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5 CONTENT_TYPE application/x-www-form-urlencoded HTTP_ACCEPT_ENCODING gzip,deflate UNIQUE_ID Ln22x0UQiqQAAAd3QfEAAAAl __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Ma...
2008 Jul 28
0
Re: remote_ip always returns 127.0.0.1 (apache)
...4h3zg@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[ ''HTTP_X_FORWARDED_FOR'' ] -- Greg Donald http://destiney.com/ --~--~---------~--~----~------------~-------~--~----~ 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@pub...
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
2008 Apr 17
0
Error log, when using apache2.2.x modproxy with mongrel
...REQUEST_PATH"=>"/test/show", "HTTP_ACCEPT_CHARSET"=>"Big5,utf-8;q=0.7,*;q=0.7", "HTTP_VERSION"=>"HTTP/1.1", "HTTP_X_FORWARDED_SERVER"=>"www.testkoji.com", "REQUEST_URI"=>"/test/show", "HTTP_X_FORWARDED_FOR"=>"127.0.0.1", "HTTP_ACCEPT"=>"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "HTTP_CONNECTION"=>"Keep-Alive", "REQUEST_METHOD"=>"GET"} --- -------------- next part -------------- An HTML attac...
2007 Oct 27
2
render_with_no_layout cause by Pingdom
...al. These are the headers I get when pingdom comes to my site: I get these sent to me every few seconds. * GATEWAY_INTERFACE : CGI/1.2 * HTTP_CONNECTION : close * HTTP_HOST : dingbat.esseff.org * HTTP_USER_AGENT : Pingdom.com_bot_version_1.4_(http://www.pingdom.com/) * HTTP_VERSION : HTTP/1.0 * HTTP_X_FORWARDED_FOR: 70.87.224.74 * HTTP_X_REAL_IP : 70.87.224.74 * PATH_INFO : / * QUERY_STRING : pingdom=true * REMOTE_ADDR : 70.87.224.74 * REQUEST_METHOD : GET * REQUEST_PATH : / * REQUEST_URI : /?pingdom=true * SCRIPT_NAME : / * SERVER_NAME : dingbat.esseff.org * SERVER_PORT : 80 * SERVER_PROTOCOL : HTTP/1.1 * SE...
2012 Dec 06
2
pasenger does not start puppet master under nginx
...ion/octet-stream; log_format main ''$remote_addr - $remote_user [$time_local] "$request" '' ''$status $body_bytes_sent "$http_referer" '' ''"$http_user_agent" "$http_x_forwarded_for"''; access_log logs/access.log main; sendfile on; #tcp_nopush on; server_tokens off; #keepalive_timeout 0; keepalive_timeout 120; gzip on; gzip_http_version 1.1; gzip_disable "msie6";...
2010 Jun 14
3
How do I upgrade rack in my current rails app?
Hi, I have a rails 2.3.8 app which has rack 1.1.0. I get parse_multipart error. There''s a new release of rack 1.2.0 which might fix the multipart error. The question is how I upgrade the rack? I froze the rails. I did "gem update rack" and it upgraded rack to 1.2.0. But my rails app still uses rack 1.1. How do I set the rails app use rack 1.2.0? Thanks. Sam -- Posted via
2011 Jul 08
2
Puppetmaster setup with separate CA server configuration help
...ype application/octet-stream; log_format main ''$remote_addr - $remote_user [$time_local] "$request" '' ''$status $body_bytes_sent "$http_referer" '' ''"$http_user_agent" "$http_x_forwarded_for"''; access_log logs/access.log main; sendfile on; # These are good default values. tcp_nopush on; tcp_nodelay off; server_tokens off; keepalive_timeout 65; server { listen 192.168.122.17:8140; server_name primary...
2007 Sep 17
2
mongrel_rails hang and does not respond
Hello, I''ve install ror/mongrel etc, etc on a linux server (rhes). As i''m not root, all package startinf from ruby have been install into ~/gconf/usr ruby-1.8.6 and all of this gem package: -r-xr--r-- 1 dimnce dba 168448 Aug 9 14:53 rails-1.2.3.gem -r-xr--r-- 1 dimnce dba 84480 Aug 9 14:56 rake-0.7.3.gem -r-xr--r-- 1 dimnce dba 217088
2007 Jun 28
1
DRb server crashing
...ORWARDS : 10 * HTTP_REFERER : http://75.126.217.82/forums/writeroom/topics/18_WR_1_document_model/comments/new * HTTP_USER_AGENT : Mozilla/5.0 (Macintosh; U; PPC Mac OS X; sv-se) AppleWebKit/419.2.1 (KHTML, like Gecko) Safari/419.3 * HTTP_VERSION : HTTP/1.1 * HTTP_X_FORWARDED_FOR : 213.185.4.64 * HTTP_X_FORWARDED_HOST : 75.126.217.82 * HTTP_X_FORWARDED_SERVER: www.jesse-grosjean-temp.com * PATH_INFO : /forums/writeroom/topics/18_WR_1_document_model/comments * RAW_POST_DATA : [FILTERED] * REMOTE_ADDR : 213.185.4.64 * REQUEST_ME...
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