1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is possible this ?

Discussion in 'Nginx' started by rfocus, Mar 29, 2015.

  1. #1
    Hello,
    I use nginx web server for proxypass, now I need solution for my problem !

    here is a proxypass :
    location /test01{
    proxy_pass http://127.0.0.1:82/limit.php?ch=conn-test01&package=test;
    add_header Content-Type application/octet-stream;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP  $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
      if ($args != '') {
      rewrite  ^(.*)  $1?;
      }
       }
    Code (markup):
    And I get answer from proxy url as a link
    http://google.com
    Code (markup):
    in my address bar, is a possible to proxypass that link through nginx to hide the link ?!

    Because I have a php script which give dinamic url
    http://127.0.0.1:82/limit.php?ch=conn-test01&package=test
    Code (markup):
    Thanks in advance
     
    rfocus, Mar 29, 2015 IP
  2. OlgaSeCom

    OlgaSeCom Active Member

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #2
    Hi! As I understand you have Apach on the backend and it works on php, and nginx don`t compatible with this php. You should instal php-fpm and after that you should rewrite proxypass.
    I can offer you basic support of Secom company. Such kind of task is our main specific.
     
    OlgaSeCom, Apr 3, 2015 IP
  3. rfocus

    rfocus Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Yes is correct, php work only on apache, I use also ngx lua maybe is better for this options for proxypass ?

    please send me on pm your contact ( skype ) for your offer !
     
    rfocus, Apr 5, 2015 IP