apache tomcat ajp的配置

首先mod_proxy 和 mod_ajp_proxy 的配置要放开

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot d:/wamp64/www
    <Directory  "d:/wamp64/www/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    Directory>
   ErrorLog D:/wamp64/bin/apache/apache2.4.23/logs/ajp.error.log
   CustomLog D:/wamp64/bin/apache/apache2.4.23/logs/ajp.log combined

   <Proxy *>
     AddDefaultCharset Off
     Order deny,allow
     Allow from all
   Proxy>

   ProxyPass /xxx ajp://localhost:8009/xxx
   ProxyPassReverse /xxx ajp://localhost:8009/xxx
VirtualHost>

你可能感兴趣的:(服务器配置)