server {
listen 80 default_server;
server_name _;
root /var/www/xenforo;
index index.php;
client_max_body_size 128M;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
}
location ~ /\. {
deny all;
root@663318:~# ls -la /etc/nginx/sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 Aug 13 06:43 .
drwxr-xr-x 8 root root 4096 Aug 8 22:56 ..
lrwxrwxrwx 1 root root 32 Aug 10 19:24 phpbb -> /etc/nginx/sites-available/phpbb
lrwxrwxrwx 1 root root 37 Aug 9 11:14 phpmyadmin -> /etc/nginx/sites-available/phpmyadmin
lrwxrwxrwx 1 root root 34 Aug 13 06:43 xenforo -> /etc/nginx/sites-available/xenforo