similar to: Using request.env[''REMOTE_HOST'']

Displaying 20 results from an estimated 2000 matches similar to: "Using request.env[''REMOTE_HOST'']"

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
2010 Jul 23
2
How to get remote hostname from behind mongrel cluster in rails?
Using request.env[''REMOTE_HOST''] worked with WEBrick, but returns blank when running behind mongrel cluster. For IP Address, I am able to use request.remote_ip. Thank you. -- 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
2004 Feb 25
1
Rsync under cygwin
Hi, I have rsync client and servers running under 3 Win2K boxes, and I can sync when the source is remote and the target is local, but when the source is local and the target is remote, I get the following error: rsync.exe --recursive /cygdrive/d/BILLS_CMS rsync://192.168.213.102/PWB3 rsync: read error: Connection aborted rsync error: error in rsync protocol data stream (code 12) at
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my controller, all the other actions use the application.rhtml layout, so what i''m doing is ... class SomeController < ApplicationController layout "simple", :only=> :some_action ...... end and the "simple" layout is applied to all the actions, can someone please give me a hint?
2006 Aug 14
8
How search engine friendly are RoR sites?
I am a total RoR virgin, and took my first steps this weekend into the Ruby world. A lot of sites I create need to be as SEO friendly as possible, particularly for google. Before I delve any further, can anyone tell me how friendly the dynamic URLs or if there is the usual rewrite mod for rugby? Thanks Mike -- Posted via http://www.ruby-forum.com/.
2016 Feb 17
2
Asterisk 13.6.0/The simplest TCP configuration does not work
On Wed, Feb 17, 2016 at 12:13 PM, Sonny Rajagopalan < sonny.rajagopalan at gmail.com> wrote: > Wow. Incredible. That worked. The backslash is important there; I kept > trying with no backslash and followed the instructions in > pjsip_wizard.conf.sample (in configs/samples) and it says we have to say > > transport=tcp ; the only example however talks about ipv4. > > Is
2006 Aug 12
7
Redirect back to last page?
I have a few pages where a user may do something (add tags, login, etc) and I would like to redirect them back to the last page they were at before calling that action. Is there an easy way to do this? -- Posted via http://www.ruby-forum.com/.
2006 Jan 06
2
replace unkown action with 404
is there a way to replace unkown action error with a pretty 404 page ? I set the ErrorDocument 404 in .htaccess, however when someong goes to http://www.mysite.com/bogus i would like it to show a 404 error instead of just "Uknown action". Is this possible with a rescue or something? adam -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 11
3
sanitize dangers
I''ve noticed that it is possible to pass javascript unaltered through the sanitize function using CSS. For example: sanitize( "<style type=''text/css''>body{background-image:url(''javascript:window.alert(1)'') }</style>" ) IE will execute the javascript. Firefox will not. I haven''t tried it with any other browsers.
2016 Oct 24
2
SSH fail to login due to hang over after authenticated.
I don't think it will be easy to identify the problem remotely. You can try logging in with password (if not disabled), or sshing with some other key, or logging into some other user. If you are able to get access to the machine, post the server's error log here. On Mon, Oct 24, 2016 at 9:55 PM, Jin Li <lijin.abc at gmail.com> wrote: > Hi Tanmay, > > The server is not
2016 Feb 19
2
No matching endpoint found for incoming call from SIP trunk
Thanks George, for your mighty quick response. I made the changes (re: server_uri_pattern etc.) and still, no luck--it fails for the same error. BTW, there is nothing for transport (but this is the same config from my SIP/UDP + Twilio days, which worked): *CLI> pjsip show transport twilio-siptrunk Unable to find object twilio-siptrunk. *CLI> pjsip show identifies No objects found. I did
2006 Feb 25
2
A Couple of Questions
Hi All, I have been using Ruby and Rails for only a few short days and I am loving it so far. I have a couple of questions relating to a specific project I am working. 1. I am wondering about sessions expiring after a set period of in activity and what would be the easiest way to set it up. 2. I would like to be able to users on the system. Each of these users has a login of there own. Each
2006 May 14
6
file and directory layout below app/models
Hiall, Is it possible to organize my model files below app/models into subfolders? E.g. I would like to put admin related models into their own subfolder. This kind of structuring works for controllers and views (scaffolding creates the right subfolder-model mappings), but app/models always stays flat. I''d really like to be able to group my code into logical, well packages :-) Yes, I
2016 Oct 24
2
SSH fail to login due to hang over after authenticated.
Hi OpenSSH, I encountered that SSH will hang over after I input the password. Could you help show me how to resolve this problem? Thanks for your help. Please find the ssh debug info and my ssh version as below. $ ssh -vvv user1 at remote_host OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration data /Users/user1/.ssh/config debug1: /Users/user1/.ssh/config line 36: Applying options for
2007 Feb 23
2
how to remove spaces from phone number
Hi, I need to allow login based on the phone number. During the signup they can give the number in any format with spaces, slash or (). But for storing in database and then during login to compare I just want the 10 digit number. How can I remove the special char from phone number before storing to db ? Thanks. -- Posted via http://www.ruby-forum.com/.
2015 Nov 26
2
nitwit's attempt to edit samba source
Hi, Since I really would like some more info (specifically: remote ip address) to be logged with failed password attempts, I have tried to edit the samba source code. :-) Anyway, I changed in source4/auth/ntlm/auth.c > if (tevent_req_is_nterror(req, &status)) { > DEBUG(2,("auth_check_password_recv: " > "%s authentication for user [%s\\%s] " >
2016 Oct 24
1
SSH fail to login due to hang over after authenticated.
Can you confirm if the problem is specific to the ssh client, or the ssh server? (Try to ssh into the same server from different client, and to some different server from the same client) On Mon, Oct 24, 2016 at 9:41 PM, Jin Li <lijin.abc at gmail.com> wrote: > Hi OpenSSH, > > I encountered that SSH will hang over after I input the password. > Could you help show me how to
2006 Jan 17
5
simple question
How do I pass parameters from one controller to another during redirect_to command? I want to pass both model and non-model objects. The solution I use is via session, but I rather pass it as parameters to the redirect_to Thanks. -- Posted via http://www.ruby-forum.com/.
2015 Nov 27
2
nitwit's attempt to edit samba source
Hi Viktor! Thanks for your try at this, I am already doing what you suggest: the iptables - timestaps. But that is rather troublesome, and I would very much samba to log this vital info. Anyway, I tried what you suggested, and now it stopped compiling. :-) Does this error perhaps tell you something, or are you just as clueless as I am now: > [1955/4033] Compiling source4/auth/ntlm/auth.c
2006 Jan 11
2
Wiki Home Page Has Spam Links
It seems the wiki-spam bot has been at work again. There are numerous hidden links toward the top of the page that might be better gardened out right away, if you know what I mean ;-| -- Posted via http://www.ruby-forum.com/.