Apache mod_proxy url encoding

后端 未结 2 1016
没有蜡笔的小新
没有蜡笔的小新 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: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:

    
    

提交回复
热议问题