Home > php教程 > php手册 > nginx + php 的配置

nginx + php 的配置

WBOY
Release: 2016-06-06 19:45:14
Original
1711 people have browsed it

location ~ \.php$ { root /home/jsckdao/www; #这是你网站的根目录 fastcgi_pass 127.0.0.1:3344; #这里指定了fastcgi进程侦听的端口,nginx就是通过这里与php交互的 fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_scrip

location ~ \.php$ {

  root              /home/jsckdao/www;          #这是你网站的根目录

  fastcgi_pass  127.0.0.1:3344;            #这里指定了fastcgi进程侦听的端口,nginx就是通过这里与php交互的

  fastcgi_index   index.php;            

  fastcgi_param SCRIPT_FILENAME  $document_root/$fastcgi_script_name;            

  include           fastcgi_params;        

}

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template