http { include mime.types; default_type application/octet-stream;
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
# set client body size to 200M #
client_max_body_size 200M;
server {
listen 443 ssl http2;
server_name toniozz75.fr;
root /usr/share/nginx/html;
index index.html index.htm;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ \.(php|html|htm)$ {
root /usr/share/nginx/html;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
try_files $uri $uri/ /index.php?$args;
include fastcgi.conf;
}
server { listen 443 ssl http2; server_name toniozz75.fr; root /usr/share/nginx/html; index index.html index.htm;
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { allow all; log_not_found off; access_log off; }
location @rewrite { rewrite ^/(.*)$ /index.php?q=$1; }
location ~ .(php|html|htm)$ { root /usr/share/nginx/html; fastcgi_pass unix:/run/php-fpm/php-fpm.sock; fastcgi_index index.php; try_files $uri $uri/ /index.php?$args; include fastcgi.conf; }