|
Server IP : 62.171.151.215 / Your IP : 216.73.217.19 Web Server : nginx/1.18.0 System : Linux vmi3128365 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64 User : alex ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (1777) : /lib32/../../tmp/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
server {
listen 80;
server_name guidelondres.fr www.guidelondres.fr;
root /var/www/guidelondres.fr;
location = /ads.txt {
default_type text/plain;
add_header Cache-Control "no-cache, must-revalidate";
try_files /ads.txt =404;
}
location / {
return 301 https://www.guidelondres.fr$request_uri;
}
}
server {
listen 443 ssl;
server_name guidelondres.fr;
ssl_certificate /etc/letsencrypt/live/guidelondres.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/guidelondres.fr/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
return 301 https://www.guidelondres.fr$request_uri;
}
server {
listen 443 ssl;
server_name www.guidelondres.fr;
client_max_body_size 128M;
root /var/www/guidelondres.fr;
index index.php index.html;
ssl_certificate /etc/letsencrypt/live/guidelondres.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/guidelondres.fr/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
gzip on;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_vary on;
gzip_proxied any;
gzip_types text/plain text/css text/javascript application/javascript application/json application/xml application/rss+xml image/svg+xml;
location = /ads.txt {
default_type text/plain;
add_header Cache-Control "no-cache, must-revalidate";
try_files /ads.txt =404;
}
# BEGIN Converter for Media
set $ext_avif ".avif";
if ($http_accept !~* "image/avif") {
set $ext_avif "";
}
set $ext_webp ".webp";
if ($http_accept !~* "image/webp") {
set $ext_webp "";
}
location ~* ^/wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif|webp)$ {
add_header Vary Accept always;
add_header Cache-Control "private" always;
expires 365d;
try_files
/wp-content/uploads-webpc/$path.$ext$ext_avif
/wp-content/uploads-webpc/$path.$ext$ext_webp
$uri =404;
}
# END Converter for Media
location / {
try_files $uri $uri/ /index.php?$args;
}
# CSS/JS
location ~* \.(?:css|js|mjs|map)$ {
expires 30d;
add_header Cache-Control "public, max-age=2592000, immutable";
access_log off;
log_not_found off;
}
# Autres images (sans jpg/jpeg/png/gif/webp pour éviter conflit)
location ~* \.(?:avif|svg|ico)$ {
expires 365d;
add_header Cache-Control "public, max-age=31536000, immutable";
access_log off;
log_not_found off;
}
# Fonts
location ~* \.(?:woff|woff2|ttf|otf|eot)$ {
expires 365d;
add_header Cache-Control "public, max-age=31536000, immutable";
access_log off;
log_not_found off;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
fastcgi_read_timeout 300;
}
location ~ /\.ht {
deny all;
}
}