nginx将内部ssl链接重定向到非ssl外部url链接
我的网站httpsnginx将内部ssl链接重定向到非ssl外部url链接,nginx,rewrite,Nginx,Rewrite,我的网站httpsexample.com,有指向httpother.com的链接。如何将外部url的任何请求从https重定向到http https://example.com -> http://another.com 问题是外部链接试图使用https,而它必须是http。试试这个 server { listen 443; server_name www.example.com; rewrite ^/(.*) http://www.another.com$requ
example.com
,有指向httpother.com
的链接。如何将外部url的任何请求从https重定向到http
https://example.com -> http://another.com
问题是外部链接试图使用https,而它必须是http。试试这个
server {
listen 443;
server_name www.example.com;
rewrite ^/(.*) http://www.another.com$request_uri permanent;
}