代码语言:javascript复制
sudo a2enmod proxy
sudo a2enmod proxy_ajp
sudo a2enmod proxy_balancer
在0000文件中写入
代码语言:javascript复制<VirtualHost *:80>
ServerAdmin test@test.com
ServerName www.test.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /test http://192.168.1.250:8080/test
ProxyPassReverse /test http://192.168.1.250:8080/test
</VirtualHost>