Загрузка данных


server {
    listen 8080 default_server;
    # listen 0.0.0.0:8080;
    server_name _;
    
    root /var/www/xenforo;
    index index.php index.html;
    
    client_max_body_size 100M;
    # =========================
    # XenForo
    # =========================
    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    # =========================
    # 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
    # =========================
    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/run/php/php8.5-fpm.sock;
    }
}