server {
listen 8080 default_server;
# listen 0.0.0.0:8080;
server_name _;
client_max_body_size 100M;
root /var/www/xenforo;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.5-fpm.sock;
}
# =========================
# XenForo
# =========================
# =========================
# phpMyAdmin STATIC
# =========================
##location /phpmyadmin {
## root /usr/share;
## index index.php;
##}
# =========================
# phpMyAdmin PHP
# =========================
## location ~ ^/phpmyadmin/(.+\.php)$ {
## root /usr/share;
## include snippets/fastcgi-php.conf;
## fastcgi_pass unix:/run/php/php8.5-fpm.sock;
## }
# =========================
# XenForo PHP
# =========================
}