天天看点

Ubuntu 启用反向代理

sudo a2enmod proxy
   sudo a2enmod proxy_ajp
   sudo a2enmod proxy_balancer           

复制

在0000文件中写入

<VirtualHost *:80>  
       ServerAdmin [email protected]  
       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>             

复制