【问题标题】:How To Setup Apache behind nginx [closed]如何在 nginx 后面设置 Apache [关闭]
【发布时间】:2013-09-17 16:15:55
【问题描述】:

我想在 nginx 后面运行 Apache。因为,我想用 (.htaccess) 重写规则。 目前 Apache 在 80 端口上运行,而 nginx 在 8080 端口上运行。nginx 仅提供静态文件(jpg、png、css、js...),其余由 Apache 处理。

哪个 Apache 模组? mod_rpafmod_proxy

Apache & nginx 配置?

【问题讨论】:

标签: apache nginx reverse-proxy


【解决方案1】:

你有一些事情倒退了。如果 Nginx 在“前面”,它应该在端口 80,而不是 Apache。此外,代理由 Nginx 完成。 Apache 不需要在此配置中安装代理模块。

Nginx 也有自己的重写模块,recommends against using .htaccess files

在搜索 [使用 nginx 作为 Apache 的反向代理] 时已经有很多教程。我建议检查一个以了解详细信息。

【讨论】:

  • 我必须安装很多脚本。每次我需要配置 nginx.so,我想要工作 .htaccess
猜你喜欢
  • 1970-01-01
  • 2012-06-30
  • 2016-11-08
  • 1970-01-01
  • 2015-10-29
  • 2014-04-04
  • 2010-11-13
  • 1970-01-01
  • 2019-02-28
相关资源
最近更新 更多