参考配置
server { listen 80; server_name 10.10.76.231; root html; index index.html index.php; #1 跳转指定文件 location /web { try_files /1.html /2.html /3.html; } #2 跳转指定页面 location /home { try_files /1.html /2.html @static; } location @static { rewrite ^/(.*)$ http://www.baidu.com; } } |
时间: 2024-08-06 04:28:01