regex - Nginx configuration equivalent for Apache -


i convert nginx rules work 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; } 

after research, have found :

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> 

but configuration doesn't work well... can me modify configuration ?

thanks


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -