首页 >后端开发 >php教程 >nginx 映射

nginx 映射

WBOY
WBOY原创
2016-07-29 09:08:321579浏览
location  /myNew/
{
  alias /usr/www/job/myNew;
}
location ~ ^/myNew/.+\.php$
{
  root /usr/www/job/myNew;
  rewrite /myNew/(.*\.php?) /$1 break;
  include fastcgi.conf;
  fastcgi_pass   127.0.0.1:9000;
  fastcgi_index  index.php;
}

location  /innerNav/
{
alias /usr/www/job/innerNav;
}
location ~ ^/innerNav/.+\.php$
{
  root /usr/www/job/innerNav;
  rewrite /innerNav/(.*\.php?) /$1 break;
  include fastcgi.conf;
  fastcgi_pass   127.0.0.1:9000;
  fastcgi_index  index.php;
}

以上就介绍了nginx 映射,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn