Nginx的+ apache的。不同的切入点

时间:2017-01-28 13:02:25

标签: php apache nginx

我有Apache(听8888)和Nginx(听80)。

在nginx.conf中

location ~ \.php$ {
  root /var/www/web/;
  ssi on;
  proxy_pass http://127.0.0.1:8888;
}

在apache conf中

<VirtualHost *:8888>
  LogLevel info
  ServerName testserver.localhost

  DocumentRoot /var/www/web/

  <Directory /var/www/web>
        AllowOverride none
        DirectoryIndex index.php
        AddType application/x-httpd-php .php
  </Directory>
</VirtualHost>

我想要两个切入点。

  1. testserver.localhost / forum / [anyfolders] / ...将把索引文件带到/var/www/forum/index.php
  2. 任何其他人都会将索引文件带入/ var / www / web
  3. 我需要在nginx.conf和apache conf中进行哪些更改?

0 个答案:

没有答案
相关问题