소스 검색

重定向路由

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

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

@@ -182,15 +182,12 @@ server {
     rewrite ^/job/(.*)$ https://{{domain}}.test-job.proginn.com/$1 permanent;
     # rewrite ^/kaifain/(?!(add|preview))$ http://{{domain}}.test-kaifain.proginn.com/$1 permanent;
 
+    rewrite ^/learn(.*)$ https://{{domain}}.test.proginn.com/skill$1 permanent;
     location ^~ /skill {
         proxy_pass http://127.0.0.1:3000;
         proxy_set_header Host {{domain}}.test.proginn.com;
     }
 
-    location ^~ /learn {
-        rewrite ^/learn(.*)$ https://{{domain}}.test.proginn.com$1 permanent;
-    }
-
     location ^~ /works {
         proxy_pass http://127.0.0.1:3000;
         proxy_set_header Host {{domain}}.test.proginn.com;