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
Post a Comment