Home  >  Article  >  Backend Development  >  nginx mapping

nginx mapping

WBOY
WBOYOriginal
2016-07-29 09:08:321542browse
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教程有兴趣的朋友有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn