开发者

Convert NGINX Location Directive To Apache

I've tried doing this myself and looking at the Apache Mod docs, but I am running into trouble.

Here is what I have so far:

<Location /chat>
    SetHandler开发者_如何学C chat

    RewriteRule      ^/chat(/.+)$ $1
    ProxyPass        http://localhost:8000
    RequestHeader    set Host $host
    RequestHeader    set Cookie $http_cookie
</Location>

Can someone familiar with NGINX and Apache convert the following please?

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;
}

Thanks


I'm actually using NGINX in production. So this question is moot. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜