Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: SSL issue wth haproxy & Safari #42851

    gpeterson
    Participant

    Fixed! I had to make haproxy pick the correct backend (OpenSprinkler) based on path or referer. This is in the frontend config:

    acl url_sprinklers path_beg -i /sprinklers
    acl referer_sprinklers hdr_dir(referer) -i /sprinklers

    use_backend sprinklers if url_sprinklers
    use_backend sprinklers if referer_sprinklers

    And this URL re-writing is in the backend:

    reqrep ^([^\ ]*\ /)sprinklers[/]?(.*) \1\2

    in reply to: SSL issue wth haproxy & Safari #42849

    gpeterson
    Participant

    I’m using path rewriting (accessing OpenSprinkler at https://<my_domain>/sprinklers) and it looks like OpenSprinkler uses absolute paths in some cases. I’m not sure how it ever worked with Chrome.

    Here are some reqests as logged by haproxy:

    GET /sprinklers
    GET /jp

    That second one should be:

    GET /sprinklers/jp

Viewing 2 posts - 1 through 2 (of 2 total)