Ubuntu 启用反向代理

2020-03-04 14:00:29 浏览数 (1)

代码语言: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>  

0 人点赞