Help for this page

Select Code to Download


  1. or download this
    my $ip = $self->tx->remote_address;
    
  2. or download this
    $self->req->headers->header('X-Real-IP')
    
  3. or download this
    proxy_set_header X-Real-IP $remote_addr;
    
  4. or download this
    upstream myapp {
      server 127.0.0.1:8080;
    ...
      }
    }