我必须将使用 RewriteCond 和 RewriteRule 的 Apache 反向代理配置转换为 Nginx。
我怎样才能将这样的东西转换为 nginx 配置?
(这是在主要/唯一的<VirtualHost *:443>
块)
RewriteCond %{HTTP_HOST} ^stagingapi$ [NC]
RewriteRule ^/(.*) https://staging-zone.mydomain.com/$1 [R,L]
我必须将使用 RewriteCond 和 RewriteRule 的 Apache 反向代理配置转换为 Nginx。
我怎样才能将这样的东西转换为 nginx 配置?
(这是在主要/唯一的<VirtualHost *:443>
块)
RewriteCond %{HTTP_HOST} ^stagingapi$ [NC]
RewriteRule ^/(.*) https://staging-zone.mydomain.com/$1 [R,L]