diff --git a/deploy/nginx.conf b/deploy/nginx.conf index d30ecb2802a61841b3aba5f2ced7ace88c1c61ce..d70f53c0bae41f306008c6d46cad210d2266d10d 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -72,8 +72,8 @@ http { } location / { - root /usr/share/nginx/html; - index index.html index.htm; + root /usr/share/nginx/html; + index index.html index.htm; } error_page 404 /zh/404.html; @@ -82,7 +82,7 @@ http { root /usr/share/nginx/html; } - location /omapi/ { + location /omapi/ { proxy_pass https://omapi.osinfra.cn/; } @@ -90,6 +90,10 @@ http { proxy_pass http://ip-api.com/json/; } + location /api-search/ { + proxy_pass https://doc-search.openeuler.org/; + } + location ~ /\. { deny all; return 404; diff --git a/deploy/nginx.ru.conf b/deploy/nginx.ru.conf index 52ba65ce1b0c984baade4aab04c02e1bba516838..a763662784b18d072c8dddefbcaabd88d6193001 100644 --- a/deploy/nginx.ru.conf +++ b/deploy/nginx.ru.conf @@ -72,8 +72,8 @@ http { } location / { - root /usr/share/nginx/html; - index index.html index.htm; + root /usr/share/nginx/html; + index index.html index.htm; } error_page 404 /ru/404.html; @@ -82,7 +82,7 @@ http { root /usr/share/nginx/html; } - location /omapi/ { + location /omapi/ { proxy_pass https://omapi.osinfra.cn/; } @@ -90,6 +90,10 @@ http { proxy_pass http://ip-api.com/json/; } + location /api-search/ { + proxy_pass https://doc-search.openeuler.org/; + } + location ~ /\. { deny all; return 404; diff --git a/layouts/404.html b/layouts/404.html index 9ee70ed1db60447c053584938e4b0cc89a068dce..96973a3d8d4d5df205911ade2ddf8dd177f81368 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -7,10 +7,11 @@