소스 검색

重定向路由

ccf 4 년 전
부모
커밋
858c46f70d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      config/nginx/template/proginn.nginx.conf

+ 1 - 1
config/nginx/template/proginn.nginx.conf

@@ -187,7 +187,7 @@ server {
         proxy_set_header Host {{domain}}.test.proginn.com;
     }
 
-    location /learn {
+    location ^~ /learn {
         rewrite ^/learn(.*)$ https://{{domain}}.test.proginn.com$1 permanent;
     }