nginx mapping

WBOY
Release: 2016-07-29 09:08:32
Original
1552 people have browsed it
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;
}
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template