NginxConfig/snippets/php-fpm.conf
2016-05-23 20:17:49 +02:00

15 lines
338 B
Plaintext

# pass the PHP scripts to FastCGI server (php5-fpm)
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
# fastcgi_pass unix:/var/run/php5-fpm.sock;
#}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}