<pre name="code" class="sql">通过.html 跳转
acl url_static path_end .html .gif .png .jpg .css .js
use_backend webserver_8001 if url_static
default_backend webserver_8001
backend webserver_8001
mode http
balance roundrobin
server webhost01_8001 10.252.105.157:8001 check inter 2000 fall 3
server webhost02_8001 10.168.29.17:8001 check inter 2000 fall 3
nginx配置:
location / {
root /var/www/zjzc-web-frontEnd/;
index index.html;
}
jrhwpt02:/var/www/zjzc-web-frontEnd# pwd
/var/www/zjzc-web-frontEnd
jrhwpt02:/var/www/zjzc-web-frontEnd# ls -ltr index.html
-rwxrwxrwx 1 511 511 30769 Dec 1 17:02 index.html
haproxy web跳转 通过.html 跳转
最新推荐文章于 2022-06-14 16:16:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)