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

nginx + php 的配置

WBOY
WBOYOriginal
2016-06-06 19:45:141710browse

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;        

}

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