使用 Mod_jk 连接器,我们在 /etc/apache2/sites-available 文件中有这个:
RewriteRule /$ /op_ugw/orderportal/home?switchprofile=RecyledPlants [L]
这工作正常。www.recycledplants.com 将带您到正确的地方。
但是在 Ubuntu 10.04 服务器上,我们设置 ajp 而不是 mod_jk 。所以我们有
ProxyPass / ajp://10.1.1.1:8009/op_ugw/orderportal/home?switchprofile=RecyledPlants ProxyPassReverse / ajp://10.1.1.1:8009/op_ugw/orderportal/home?switchprofile=RecyledPlants
当我尝试访问recycledplants.randrinc.com(用于测试的网址)时,我收到404错误并且
描述:请求的资源 (/op_ugw/orderportal/home%3Fswitchprofile=RecyledPlants) 不可用。
这 ?已转换为 %3F。
有没有办法阻止 Apache 转换 ? 到 %3F。
希望这是有道理的。谢谢安