We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
说明:
配置:
location / { proxy_pass http://static-nginx-test.oss-cn-beijing.aliyuncs.com/xxx/index.html; }
location /api/ { proxy_set_header X-Origin-Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host xxx; proxy_next_upstream error invalid_header http_502 http_503; proxy_next_upstream_tries 3; proxy_pass http://soho-test-ingress/; client_max_body_size 50M; } location / { proxy_pass http://static-nginx-test.oss-cn-beijing.aliyuncs.com/xxx/; }
location / { if ($request_filename ~ .*\.(htm|html)$) { add_header Cache-Control no-cache; expires -1s; } try_files $uri /index.html; proxy_pass https://static-nginx-test.oss-cn-beijing-internal.aliyuncs.com/tutor/tutor-turing-web/; } location ~* \.(gif|jpg|png|js|css)$ { # 方法一 rewrite ^/(.*)$ /tutor/tutor-turing-web/$1 break; proxy_pass https://static-nginx-test.oss-cn-beijing-internal.aliyuncs.com; # 方法二 proxy_pass https://static-nginx-test.oss-cn-beijing-internal.aliyuncs.com/tutor/tutor-turing-web$uri; }
if ($scheme != "https") { rewrite ^ https://$host$uri permanent; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
场景
1. 代理域名到目标 CDN
说明:
配置:
2. 前后端分离配置
说明:
配置:
3. 支持 browser router
说明:
配置:
4. http 跳转 https
坑点
The text was updated successfully, but these errors were encountered: