site-musique/nginx.conf

22 lines
498 B
Nginx Configuration File

server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.php;
}
#error_page 404 /404.html;
# pass the PHP scripts to FastCGI server listening on php:9000
#
location ~ \.php$ {
root html;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/$fastcgi_script_name;
include fastcgi_params;
}
}