30 lines
686 B
Plaintext
30 lines
686 B
Plaintext
|
server {
|
||
|
listen _PORT_;
|
||
|
listen [::]:_PORT_;
|
||
|
|
||
|
root /var/www/loveland/_APPLI_;
|
||
|
|
||
|
server_name _MY_NODE_NAME_ localhost 127.0.0.1;
|
||
|
|
||
|
index index.php index.html;
|
||
|
|
||
|
# set expiration of assets to MAX for caching
|
||
|
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
|
||
|
expires max;
|
||
|
log_not_found off;
|
||
|
}
|
||
|
|
||
|
# php parsing
|
||
|
location ~ \.php$ {
|
||
|
include fastcgi_params;
|
||
|
fastcgi_pass unix:/var/run/php/php_PHPVERSION_-fpm.sock;
|
||
|
fastcgi_index index.php;
|
||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||
|
}
|
||
|
|
||
|
error_log /var/log/nginx/_APPLI_.error.log;
|
||
|
access_log /var/log/nginx/_APPLI_.access.log;
|
||
|
|
||
|
|
||
|
}
|