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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -