Maison > Article > développement back-end > nginx 映射
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教程有兴趣的朋友有所帮助。