Apache到tomcat代理不显示图像

时间:2016-09-28 17:39:31

标签: image apache tomcat

我在linux机器上运行apache 2.4.6,在同一台机器上运行tomcat 7。我还设置了一个代理传递来访问部署在tomcat7的webapps目录中的java应用程序,

问题是 - 当我尝试访问应用程序时,使用tomcat的直接URL - servername:8081 / test / test,一切正常;但是如果我尝试使用webserver URL - servername / test访问它,它就不会在浏览器上显示图像。 对不起,我无法发布链接,因为我没有声望点:( 从apache服务器日志 -

  

10.12.109.125 - - [28 / Sep / 2016:13:24:52 -0400]" GET /test/jquery/js/jquery.js HTTP / 1.1" 404 1003" severname / test /"   " Mozilla / 5.0(Windows NT 6.1; Win64; x64)AppleWebKit / 537.36(KHTML,   像Gecko)Chrome / 53.0.2785.116 Safari / 537.36"

     

10.12.109.125 - - [28 / Sep / 2016:13:24:52 -0400]" GET /test/test.css HTTP / 1.1" 404 979" servername / test /" " Mozilla / 5.0(Windows NT 6.1;   Win64平台; x64)AppleWebKit / 537.36(KHTML,和Gecko一样)   Chrome / 53.0.2785.116 Safari / 537.36"

     

10.12.109.125 - - [28 / Sep / 2016:13:24:52 -0400]" GET /test/images/testLogo3.png HTTP / 1.1" 404 1003" servername / test /"   " Mozilla / 5.0(Windows NT 6.1; Win64; x64)AppleWebKit / 537.36(KHTML,   像Gecko)Chrome / 53.0.2785.116 Safari / 537.36"

     

10.12.109.125 - - [28 / Sep / 2016:13:24:53 -0400]" GET /test/images/userImages/431724552455061171logo.png HTTP / 1.1" 404 1053   " severname /测试/" " Mozilla / 5.0(Windows NT 6.1; Win64; x64)   AppleWebKit / 537.36(KHTML,与Gecko一样)Chrome / 53.0.2785.116   Safari浏览器/ 537.36"

关于我在这里缺少什么的任何线索?

配置如下:

<VirtualHost *:80>
    ServerName test.testsystems.com
    ProxyRequests off
    ProxyPreserveHost on
    <Proxy *>
        Require all granted
    </Proxy>
    ProxyPass /examples ajp://test.testsystems.com:8009/examples
    ProxyPass /test/ ajp://test.testsystems.com:8009/test/test
    ProxyPassReverse /test/ ajp://test.testsystems.com:8009/test/test
</VirtualHost>

0 个答案:

没有答案