【问题标题】:Apache & Nginx in Same DirectoryApache 和 Nginx 在同一目录中
【发布时间】:2012-03-06 21:56:22
【问题描述】:

我想在同一个目录下使用 Apache 和 Nginx:

nginx root /home/admin/tv;

Apache DocumentRoot domain root /home/admin/tv;

我设置了相同的目录,但是当我转到 Nginx 地址时

ip:777 i got  403 Forbidden nginx/0.8.54

我终于更改了权限并且它起作用了。

【问题讨论】:

    标签: apache nginx directory document root


    【解决方案1】:

    没有理由不能运行其中的每一个。他们只需要绑定到不同的套接字。 403错误是因为你的权限配置错误。

    【讨论】:

    • 如何更改文件夹 /home/admin 的权限?
    【解决方案2】:

    我之前玩过这个,我有 apache 和 nginx 并在我的服务器上测试它们。只要您在两者的虚拟主机中进行更改以反映您选择的目录,您就应该能够使用与现有站点相同的目录。不过,我认为您不能同时运行两者。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-03
      • 1970-01-01
      • 2017-12-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多