Feature request httpd location match / pass URI

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Feature request httpd location match / pass URI

Sergiu Partenie
>Synopsis:      Feature request httpd location match / pass URI
>Category:      user
        System      : OpenBSD 6.2
        Details     : OpenBSD 6.2 (GENERIC.MP) #5: Fri Feb  2 23:02:19 CET 2018
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
        Feature request for adding optional URI parameter to httpd.conf's
        "pass" in order to better replicate Apache's mod_rewrite

        While the "location match / block 302 URI" mechanism works fine for
        some web applications using "GET", it won't work for "POST"

        Browsers do 302 redirections as GET - so POST form data is lost

        Most browsers do not respect the 307 redirects to re-POST

        There is no way to differntiate in the "loction match" stanza
        between a POST and GET to return different codes.

        My proposal is for adding a optional URI parameter to "pass"
        with the same macros as for "block" that will cause httpd to (try to)
        serve the actual expanded URI - this way replicating the
        mod_rewrite functionality, preserving the "nice looking" URLs in
        the user’s browser and getting POST to work.

        Thank you very much

        Feature request

        Feature request