我需要配置 Apache 来调用 Tomcat 来提供页面,并且该页面在/image
名为 logo 的文件夹中有一张图像,该图像应由 Apache 提供。这是 Apache 虚拟主机:
<VirtualHost *:80>
DocumentRoot "/var/www/helloworld"
ServerName helloworld
<Directory "/var/www/helloworld">
allow from all
Options None
Require all granted
</Directory>
JkMount /helloworld worker1
JkMount /helloworld/* worker1
JkUnMount /helloworld/images worker1
</VirtualHost>
和/etc/apache2/workers.properties
:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
应提供的图像在/var/www/helloworld/image/
,但是它不起作用。