Apache mod_proxy url encoding

后端 未结 2 1021
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 20:31

I have a REST service that accepts parameters in a form /{parameter}

Also there is Apache2 that forwards requests to the websevice



        
相关标签:
2条回答
  • 2021-02-05 21:12

    Solved by specifying

    ProxyPass /webservice balancer://api/webservice nocanon
    
    0 讨论(0)
  • 2021-02-05 21:37

    A little bit off topic since this does not solve the problem with slashes but I will add it here anyway if anyone else runs in to the same problem as I had.

    I had a similar problem that swedish special characters (åäö) in url parameters were not handled correctly when passed through apache proxy. It turned out that apache was doing fine but in the receiving tomcat instance the AJP-connector was missing URIEncoding configuration.

    From my tomcat server.xml:

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8080" URIEncoding="UTF-8"/>
    
    0 讨论(0)
提交回复
热议问题