1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
server { listen 80; listen 443 ssl http2; server_name appset.site ; index index.html index.htm index.php default.html default.htm default.php; root /var/www/tp5/public/; # 404时,转发到其他域名,注意下面的 = 是必须要有的, # 不然转发是成功的,但是状态码还是 404 error_page 404 = @fallback; # 转发 location @fallback { proxy_pass https://huale.3hexcx.com; proxy_redirect default; # } } |