astroport/www/g1billet.conf

29 lines
675 B
Plaintext
Raw Normal View History

2020-03-22 01:31:06 +01:00
server {
2020-05-23 00:06:53 +02:00
listen _PORT_;
listen [::]:_PORT_;
server_name _MY_NODE_NAME_ localhost 127.0.0.1;
2020-03-22 01:31:06 +01:00
index index.php index.html;
root /var/www/g1billet;
# 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;
2020-05-13 20:37:04 +02:00
fastcgi_pass unix:/var/run/php/php_PHPVERSION_-fpm.sock;
2020-03-22 01:31:06 +01:00
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
error_log /var/log/nginx/g1billet_error.log;
access_log /var/log/nginx/g1billet_access.log;
}