File: //var/lib/letsencrypt/backups/1760127045.5291154/alumni.dataconn.net_18
server {
listen 80;
listen [::]:80;
server_name alumni.dataconn.net;
root /opt/wpsites/alumni.dataconn.net;
index index.html;
# Security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
# Deny access to hidden files
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
# Main location
location / {
try_files $uri $uri/ =404;
}
# PHP processing
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# Deny access to data directory (extra security)
location /data {
deny all;
return 404;
}
# Logging
access_log /var/log/nginx/alumni_access.log;
error_log /var/log/nginx/alumni_error.log;
}