Hi Andreas,

On your previous mail:

**************

Okay, so I tried your suggestion. The redirect itself works fine. However,
Now I have an interesting problem. Whenever I try to access
https://mydomain.org/cgi-bin/myscript.pl,
I get redirected to
http://mydomain.org/cgi-bin/myscript.pl
? I would expect to get forwarded
to backend 10.0.10.11:80 instead ...

Here's my config:

ListenHTTP
  RewriteDestination 0
  RewriteLocation    0
  Address            10.0.10.109
  Port               80
  xHTTP              2
  Service
    HeadDeny         "Host:\smydomain.org.*"
    Redirect         301 "http://mydomain.org";
  End
  Service
    Session
      Type           IP
      TTL            300
    End
    BackEnd
      Address        10.0.10.110
      Port           80
    End
  End
End

ListenHTTPS
  RewriteDestination 0
  RewriteLocation    0
  Address            10.0.10.109
  Port               443
  xHTTP              2
  Cert               "/etc/pound/mydomain.de.pem"
  Ciphers            "HIGH:!SSLv2"
  Service
    HeadDeny         "Host:\smydomain.org.*"
    Redirect         301 "https://mydomain.org";
  End
  Service
    Session
      Type           IP
      TTL            300
    End
    URL              "^/cgi-bin"
    BackEnd
      Address        10.0.10.11
      Port           80
    End
  End
  Service
    Session
      Type           IP
      TTL            300
    End
    BackEnd
      Address        10.0.10.110
      Port           80
    End
  End
End

****************

I think yout regular expresion isn't complete.  Try:

      URL    "^/cgi-bin/.*"

Regards,
Francisco ruiz


--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to