Search code examples
.htaccessapache2nginxapache-config

What is the equivalent value for apache configuration


I need to convert following nginx rule to Apache configuration. can anyone help me.

location /chat {
   rewrite            /chat(/.+)$ $1 break;
   proxy_pass         http://localhost:8000;
   proxy_set_header   Host $host;
   proxy_set_header   Cookie $http_cookie;
   proxy_buffering    off;
   proxy_send_timeout 310;
}

Solution

  • Have a look at the mod_proxy documentation, I think the ProxyPassMatch directive is of interest.