天天看點

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>             

複制