Order deny,allow Allow from all
ProxyPass /roadcloud/ http://www.roadcloud.com.cn/ ProxyPassReverse /roadcloud/ http://www.roadcloud.com.cn/
Web pages after the reverse proxy
I set up the/roadcloud reverse proxy to www.roadcloud.com.cn, Www.roadcloud.com.cn's first level directory can be proxied, but the level two directory and the following cannot be proxied, such as My domain name is: www.mcmxzl.com To Proxy: http://www.roadcloud.com.cn/templates/index/default/images/slider_1.jpg The post-agent link should be: https://www.mcmxzl.com/roadcloud/templates/index/default/images/slider_1.jpg The actual is: https://www.mcmxzl.com/templates/index/default/images/slider_1.jpg
Order deny,allow Allow from all
ProxyPass /roadcloud/ http://www.roadcloud.com.cn/ ProxyPassReverse /roadcloud/ http://www.roadcloud.com.cn/
Web pages after the reverse proxy
I set up the/roadcloud reverse proxy to www.roadcloud.com.cn, Www.roadcloud.com.cn's first level directory can be proxied, but the level two directory and the following cannot be proxied, such as My domain name is: www.mcmxzl.com To Proxy: http://www.roadcloud.com.cn/templates/index/default/images/slider_1.jpg The post-agent link should be: https://www.mcmxzl.com/roadcloud/templates/index/default/images/slider_1.jpg The actual is: https://www.mcmxzl.com/templates/index/default/images/slider_1.jpg
Your aim is to get http://www.mcmxzl.com/roadcloud/ to Agent http://www.roadcloud.com.cn/. The problem is that the reverse proxy is going to take the original path, that is, you are now in the situation, you directly access http://www.mcmxzl.com/roadcloud/templates/to get the HTTP// www.roadcloud.com.cn/roadcload/templates/result, so as you do, the picture does not show up and must be http://www.mcmxzl.com/templates/ So access to get http://www.roadcloud.com.cn/templates/results, is such a phenomenon? This and nginx performance is the same, you want to let Apache automatically remove/roadcloud, is the need to rewrite the URL, Apache I do not understand, to help you search one, you see it. https://segmentfault.com/a/1190000000406581
I set up the/roadcloud reverse proxy to www.roadcloud.com.cn, Www.roadcloud.com.cn's first level directory can be proxied, but the level two directory and the following cannot be proxied, such as My domain name is: www.mcmxzl.com To Proxy: http://www.roadcloud.com.cn/templates/index/default/images/slider_1.jpg The post-agent link should be: https://www.mcmxzl.com/roadcloud/templates/index/default/images/slider_1.jpg The actual is: https://www.mcmxzl.com/templates/index/default/images/slider_1.jpg
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.