当前位置:Gxlcms > PHP教程 > nginx映射

nginx映射

时间:2021-07-01 10:21:17 帮助过:34人阅读

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教程有兴趣的朋友有所帮助。

人气教程排行