[nginx/php] Installation de php-fpm et config pour nginx
This commit is contained in:
parent
6f1a7608ed
commit
b7de7707a3
4 changed files with 29 additions and 0 deletions
3
Cfg/etc/nginx/snippets/php.conf/info.xml
Normal file
3
Cfg/etc/nginx/snippets/php.conf/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner='root' group='root' perms='0644'/>
|
||||
</FileInfo>
|
15
Cfg/etc/nginx/snippets/php.conf/php.conf
Normal file
15
Cfg/etc/nginx/snippets/php.conf/php.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
location ~ .php$ {
|
||||
if (!-e $request_filename) {
|
||||
return 404;
|
||||
}
|
||||
fastcgi_buffer_size 128k;
|
||||
fastcgi_buffers 4 256k;
|
||||
fastcgi_busy_buffers_size 256k;
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue