开发者

Convert NGINX Location Directive To Apache

开发者 https://www.devze.com 2023-01-27 06:21 出处:网络
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:

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

精彩评论

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