【问题标题】:What is the equivalent value for apache configurationapache配置的等效值是多少
【发布时间】:2011-05-15 10:23:35
【问题描述】:

我需要将以下 nginx 规则转换为 Apache 配置。 谁能帮帮我。

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

【问题讨论】:

  • 这看起来不像是重写你想要的东西,而是代理的东西。
  • 是的,它是代理的东西。所以这意味着我需要修改httpd.conf?如果是这样,那么 httpd.conf 中应该有什么?

标签: .htaccess apache2 nginx apache-config


【解决方案1】:

看看mod_proxy documentation,我觉得ProxyPassMatch指令很有趣。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-17
    • 1970-01-01
    • 1970-01-01
    • 2014-05-09
    相关资源
    最近更新 更多