19 lines
666 B
Plaintext
19 lines
666 B
Plaintext
|
server {
|
||
|
# The port to listen on
|
||
|
listen 80;
|
||
|
# The root directory, which must exactly match the internal volume share
|
||
|
root /usr/share/nginx/html;
|
||
|
|
||
|
# For all files with the PHP extension run the following
|
||
|
location ~ ^/.+\.php(/|$) {
|
||
|
# Pass the request to the host "php" and port 9000 (default PHP-FPM port)
|
||
|
fastcgi_pass php:9000;
|
||
|
# Include the default NGINX FastCGI Parameters
|
||
|
include fastcgi_params;
|
||
|
# Define one additional parameter telling PHP-FPM where to find the file
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
}
|
||
|
add_header Cache-Control no-cache;
|
||
|
expires 1s;
|
||
|
}
|