On my test machine Pound works perfectly.
On my production machine, with almost the same configuration, Pound logs nothing and AddHeader does not insert a header.

I have tried everything I can think of, many times. I am going mad! Here is my configuration.

$ cat /etc/pound/pound.cfg
User    "root"
Group   "root"

LogLevel 5
Alive    30

Control "/var/run/poundctl.socket"

# Redirect all http requests on port 80 to https on port 443
# The Play Framework webapp never sees these redirected requests because Pound handles them
ListenHTTP
  Address 0.0.0.0
  Port 80
  Err500 "/usr/local/etc/pound_error_500"
  Err503 "/usr/local/etc/pound_error_500"
  Service
    #HeadDeny "User-Agent .*MJ12bot.*"
    #HeadDeny "User-Agent .*Sogou.*"
    Redirect 301 "https://www.scalacourses.com";
  End
End

# Redirect all requests on port 443 to the Play Framework webapp on port 9443
ListenHTTPS
  Address 0.0.0.0
  Port 443
  Err500 "/usr/local/etc/pound_error_500"
  Err503 "/usr/local/etc/pound_error_500"
  Cert "/var/work/training/cadenza/conf/ssl/scalacourses.com.pound.pem"
  Disable SSLv3
Ciphers "EECDH+ECDSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:ECDH+AES128:ECDH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!eNULL:!LOW:!aNULL:!MD5:!DSS"
  SSLAllowClientRenegotiation     0
  SSLHonorCipherOrder 1
  HeadRemove "X-Forwarded-Proto"
  HeadRemove "x-forwarded-proto"
  AddHeader "x-forwarded-proto: https"
  Service
    BackEnd
      HTTPS
      Address 127.0.0.1
      Port 9443
    End
  End
End


Thanks,

Mike

Reply via email to