我在本地的dev机器上运行多个drupal站点。
这是我当前的配置http://pastebin.com/jpivzA4m
因此,当我转到localhost/ drupal _test/时,我的一个drupal站点运行良好,然而,当我转到localhost/pw时,这是我的另一个站点,出现了首页,但没有内部页,我得到了500内部服务器错误。
我的朋友使用下面的配置,它适用于他。我想知道为什么会发生这种情况。我是新来nginx的,所以我迷路了。
http://pastebin.com/dUZbAM0b
错误日志:
2013/11/08 04:17:26 [warn] 7825#0: conflicting server name "localhost" on 0.0.0.0:80,
ignored
2013/11/08 04:17:26 [warn] 7826#0: conflicting server name "localhost" on 0.0.0.0:80,
ignored
2013/11/08 04:18:30 [error] 7828#0: *8 rewrite or internal redirection cycle while
internally redirecting to "/index.html", client: 127.0.0.1, server: localhost, request:
"GET /pw/home HTTP/1.1", host: "localhost", referrer: "http://localhost/pw/"发布于 2013-11-08 06:40:14
在nginx配置中,您正在监听unix套接字端口fastcgi_pass unix:/var/run/php5-fpm.sock;,您在注释中声明fastcgi服务器正在监听127.0.0.1:9000。所以我会改变
fastcgi_pass unix:/var/run/php5-fpm.sock;
至
fastcgi_pass 127.0.0.1:9000;
https://stackoverflow.com/questions/19848035
复制相似问题