Nginx配置等效于Apache

时间:2015-08-30 18:17:41

标签: regex apache nginx configuration

我想帮助将这些Nginx规则转换为适用于Apache的工作:

location ~ ^/video/([a-zA-Z0-9=\?]+)$ {
  rewrite ^/video/(.*)$ /video/ break;
}
location /video {
  ssi on;
}
location /http-bind {
  proxy_pass      http://localhost:5280/http-bind;
  proxy_set_header X-Forwarded-For $remote_addr;
  proxy_set_header Host $http_host;
}

经过一番研究,我发现:

RewriteCond %{REQUEST_URI} ^/meet/[a-zA-Z0-9]+$
RewriteRule ^/meet/(.*)$ /meet/ [PT]
ProxyPreserveHost Off

<Location "/meet/http-bind">
  RequestHeader set Host "localhost"
  ProxyPass http://localhost:5280/http-bind
  ProxyPassReverse http://localhost:5280/http-bind
</Location>

但是这种配置效果不好......你能帮我修改一下这个配置吗?

谢谢

0 个答案:

没有答案