search for: server_port

Displaying 20 results from an estimated 49 matches for "server_port".

2010 Jan 09
8
X-Forwarded-Proto / X_FORWARDED_PROTO
Eric, think I came across an issue with the parser in unicorn, with a request (due to 2 layers of nginx proxying) coming across with both a X_FORWARDED_PROTO and a X-Forwarded-Proto header. From the socket (in HttpRequest) - we get: X_FORWARDED_PROTO: http X-Forwarded-Proto: https which is parsed to HTTP_X_FORWARDED_PROTO"=>"http,https There was a passenger ticket that
2012 Feb 11
1
Asterisk perl AGI confusing variables
Hello all, I'm struck with a very strange problem today. I've an AGI with some code subroutine snippet as follows: sub enable_sbc($) { my $carrier = shift; my $tmp = substr($carrier,1); my $jkh = $tmp; $server_port = $ast_agi->get_variable("SIPPEER($jkh,port)"); $ser_ip = $ast_agi->get_variable("SIPPEER($tmp,ip)"); $ast_agi->exec("SIPAddHeader","P-PORT: $server_port"); $ast_agi->exec("SIPAddHeader","P-IPADDRESS: $ser_ip...
2017 Feb 23
2
help with RewriteRule regexp
....|/webmail https://%{SERVER_NAME}%{REQUEST_URI} [L,R] But that does not rewrite for http://webmail.domain On 02/22/2017 06:41 PM, Robert Moskowitz wrote: > Seems I left off one point in this message. > > This is to refine these rules in my Apache server. > > RewriteCond %{SERVER_PORT} !^443$ > RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] > > I only want the rewrite if the URL includes webmail as I indicate below. > > I have found that now the RewriteCond is 'recommended' to be changed to: > > RewriteCond %{SERVER_POR...
2006 Jun 23
1
@request.env and mongrel
...s question should be posted here on the Rails list or the Mongrel list, but I''ll try here first. I had been using Aapache+FCGI and when I run the following code from my server''s domain "perficient.com" it returns "perficient.com:80": port = @request.env["SERVER_PORT"]==''80'' ? '''' : ":#{@request.env["SERVER_PORT"]}" server = "http://#{@request.env["SERVER_NAME"]}#{port}" however when I use Apache+Mongrel it returns "localhost:3000". Any ideas? if not is there another m...
2017 Feb 22
2
help with RewriteRule regexp
My regexp skills are somewhere infinitesimally close to zero. I have never really 'gotten' them. That said, I have spent a couple hours already search for help to write a rewriterule that works on a string in the URL. In particular I want success if either of the following were provided: webmail.domain (e.g. webmail.foo.com) server/webmail (e.g. www.foo.com/webmail) And I have not
2008 Feb 28
1
C Code to connect to Asterisk Manager Interface
...gt; #include<unistd.h> #include<string.h> #include<arpa/inet.h> #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #define MAX_MSG_SIZE 512 #define SERVER_ADDRESS "192.168.0.150" #define CLIENT_ADDRESS "192.168.0.150" #define SERVER_PORT 5038 #define CLIENT_PORT 5100 int main() { int sd; struct sockaddr_in serveraddr, clientaddr; char msg[MAX_MSG_SIZE]; bzero((char *) &serveraddr, sizeof(serveraddr)); serveraddr.sin_family = AF_INET; serveraddr.sin_addr.s_addr = inet_addr(SERVER_ADDRESS); server...
2009 Jan 30
3
Pass a variable from rake to steps file in cucumber
...;'] || ''*chrome'' t.cucumber_opts = "--profile #{profile}" end I would like to have access to the "browser_type" variable in my "Before do" in my_steps.rb file. ## my_steps.rb Before do $browser = Selenium::SeleniumDriver.new($server_host, $server_port, "browser_type", $root_url, $time_out) end Thanks for the help. -- View this message in context: http://www.nabble.com/Pass-a-variable-from-rake-to-steps-file-in-cucumber-tp21746008p21746008.html Sent from the rspec-users mailing list archive at Nabble.com.
2017 Feb 23
1
help with RewriteRule regexp
....|/webmail https://%{SERVER_NAME}%{REQUEST_URI} [L,R] But that does not rewrite for http://webmail.domain On 02/22/2017 06:41 PM, Robert Moskowitz wrote: > Seems I left off one point in this message. > > This is to refine these rules in my Apache server. > > RewriteCond %{SERVER_PORT} !^443$ > RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] > > I only want the rewrite if the URL includes webmail as I indicate below. > > I have found that now the RewriteCond is 'recommended' to be changed to: > > RewriteCond %{SERVER_POR...
2006 Jun 16
0
rake spec controller test output hideus.
...y_parameters={"action"=>"signup"}, @host="test.host", @cookies={}, @env={"REMOTE_ADDR"=>"0.0.0.0", "REQUEST_URI"=>"/user/signup?user=passwordnewpasswordloginnewbobemailnewbob%40mcbob.compassword_confirmationwrong", "SERVER_PORT"=>80, "REQUEST_METHOD"=>"POST"}, @path_parameters={"action"=>"signup", "controller"=>"user"}, @session=#<ActionController::TestSession:0x24d6a74 @attributes={"flash"=>{:warning=>"Signup unsuccessful...
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
2007 Mar 08
10
routing TCP to another box preserving ORIGINAL client IPs
My TCP clients connect to box A. I need to forward those connections to a server on box B, such that the original client IPs are visible to the server on B. Each box has two Ethernet ports. One port on each box is connected to WAN, and they are cross-connected in a LAN via remaining ports: ------------------- ------------------- WAN -- |eth0 Box A eth1|---LAN---|eth1 Box
2017 Feb 22
0
help with RewriteRule regexp
Seems I left off one point in this message. This is to refine these rules in my Apache server. RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] I only want the rewrite if the URL includes webmail as I indicate below. I have found that now the RewriteCond is 'recommended' to be changed to: RewriteCond %{SERVER_PORT} !=443 But I have not found...
2017 Feb 23
0
help with RewriteRule regexp
....|/webmail https://%{SERVER_NAME}%{REQUEST_URI} [L,R] But that does not rewrite for http://webmail.domain On 02/22/2017 06:41 PM, Robert Moskowitz wrote: > Seems I left off one point in this message. > > This is to refine these rules in my Apache server. > > RewriteCond %{SERVER_PORT} !^443$ > RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] > > I only want the rewrite if the URL includes webmail as I indicate below. > > I have found that now the RewriteCond is 'recommended' to be changed to: > > RewriteCond %{SERVER_POR...
2009 Jun 25
1
request.host, proxy chains and HTTP_X_FORWARDED_HOST
...t.rb line 271) def raw_host_with_port if forwarded = env["HTTP_X_FORWARDED_HOST"] forwarded.split(/,\s?/).last else env[''HTTP_HOST''] || "#{env[''SERVER_NAME''] || env [''SERVER_ADDR'']}:#{env[''SERVER_PORT'']}" end end What happens is that we get proxy2 as the host. Shouldn''t it be trying to get the first item instead - forwarded.split(/,\s?/).first giving us proxy1:81 instead? Is this a bug? If not, is there reasoning behind this? Derek.
2011 Oct 10
0
passenger , ruby on rails , apache 2.2.21
...am configuring apache 2.2 to serve my rails app through passenger. First, I redirect all http traffic to https with the following: This is my web server apache conf file. ServerName sampleapp NameVirtualHost *:80 <VirtualHost *:80> Options FollowSymLinks RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] </VirtualHost> Inside the <VirtualHost *:443> section, I have the following configuration, which seems extremely standard: <Directory /> Options FollowSymLinks AllowOverride None Order deny...
2006 Feb 20
2
DNS Setting
Hello People, In my DNS setting I added A record of www for our company website. It works, when you go to http://www.mycompany.com; it resolves and it shows the website content. But in addition, I want also some kind of redirection or mapping (i don't know what you called that) that when people go to http://mycompany.com (without www), it should forward also to the www server. How to do
2007 May 30
0
Headers munged into RAW_POST_DATA
...eyword %5Bbroad_keywords%5D= * REMOTE_ADDR : xx.xxx.xxx.xxx * REQUEST_METHOD : POST * REQUEST_PATH : /ad_keywords/new * REQUEST_URI : /ad_keywords/new?cid=7&ad=5&ct= * SCRIPT_NAME : / * SERVER_NAME : foo.com * SERVER_PORT : 80 * SERVER_PROTOCOL : HTTP/1.1 * SERVER_SOFTWARE : Mongrel 1.0 Parameters: {"Connection: Keep-Alive\r\ncoupon_code"=>"", "action"=>"deposit_funds", "controller"=>"accounts", "deposit_am...
2007 May 29
1
Headers munged into RAW_POST_DATA
...5Bbroad_keywords%5D= * REMOTE_ADDR : xx.xxx.xxx.xxx * REQUEST_METHOD : POST * REQUEST_PATH : /ad_keywords/new * REQUEST_URI : /ad_keywords/new?cid=7&ad=5&ct= * SCRIPT_NAME : / * SERVER_NAME : foo.com * SERVER_PORT : 80 * SERVER_PROTOCOL : HTTP/1.1 * SERVER_SOFTWARE : Mongrel 1.0 Parameters: {"Connection: Keep-Alive\r\ncoupon_code"=>"", "action"=>"deposit_funds", "controller"=>"accounts", "depo...
2008 Mar 25
1
extending bdrb / running multiple servers
..., with a new init method that takes the host and port as parameters: class BackgrounDRb::CustomProxy < BackgrounDRb::WorkerProxy def self.init(ip, port) @@config = BackgrounDRb::Config.read_config("#{BACKGROUNDRB_ROOT}/ config/backgroundrb.yml") @@server_ip = ip @@server_port = port new end end But this doesn''t seem very elegant to me, I worry about future software updates... Is there a clean method for doing this or is this just not supported (yet)? Thanks for any insight, really appreciate it! -- Steve
2008 Oct 06
8
.htaccess rewrite
can someone help me with an .htaccess rewrite? i''m trying to convert all requests to "/?spot=8888" to be "/locations/ 888". thanks. --~--~---------~--~----~------------~-------~--~----~ 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