Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Url Redirect without url change #12082

    I am trying to do basically the same thing and am getting stuck.
    I am trying to connect to which is pointing to the virtual server IP on the AX. We are using https and SNAT with an AFLEX. Given the aFlex and forwarded header data, I should get the content from (as seen in the aFlex) but not have my browser URL change from
    when RULE_INIT {
    set ::DEBUG 0

    when HTTP_REQUEST {
    set timestamp [TIME::clock seconds]
    set src_ip [IP::client_addr]
    set src_port [TCP::client_port]
    set dst_ip [IP::local_addr]
    set dst_port [TCP::local_port]
    set domain [HTTP::host]
    HTTP::header replace Host “”
    HTTP::header insert X-Forwarded-Proto “http”
    HTTP::header insert X-Forwarded-Port 443
    HTTP::header insert X-Forwarded-For $src_ip
    HTTP::header insert X-Forwarded-Host $domain

    #Add a log for debugging
    if { $::DEBUG > 0} {
    set log_str “\[$timestamp\] $cip:$cport -> $vip:$vport to $snat_ip:$snat_port -> $sip:$sport”
    log local5.INFO $log_str
    The connection is being closed out by the server with the following detail and I am not sure what Invalid Verb is in terms of the communication between the AX SNAT IP and the IIS 6 server on the backend.

    GHHTTP/1.1 400 B
    ad Reque st..Cont
    ent-Type : text/h
    tml..Dat e:Wed,
    07 Jun 2 017 20:2
    6:54 GMT ..Connec
    tion: cl ose..Con
    tent-Len gth: 35.
    …<h1>B ad Reque
    st (Inva lid Verb)</h1>

    I can point directly to the server and can get the content to load.

    Help is much appreciated.


Viewing 1 post (of 1 total)