nl -ba /etc/nginx/sites-enabled/xenforo.conf
1 server {
2 listen 127.0.0.1:8080 default_server;
3 server_name 6vhk7mxbb5g7tk2ncrj4u6gi7enxt5dlvk3o4jo5a5zoprjo7yxpjpid.onion;
4
5 root /var/www/xenforo;
6 index index.php index.html;
7 client_max_body_size 100M;
8 # =========================
9 # XenForo
10 # =========================
11 location / {
12 try_files $uri $uri/ /index.php?$args;
13 }
14
15 # =========================
16 # phpMyAdmin STATIC
17 # =========================
18 location /phpmyadmin {
19 root /usr/share;
20 index index.php;
21 }
22
23 # =========================
24 # phpMyAdmin PHP
25 # =========================
26 location ~ ^/phpmyadmin/(.+\.php)$ {
27
28 root /usr/share;
29
30 fastcgi_pass unix:/run/php/php8.4-fpm.sock;
31
32 fastcgi_index index.php;
33
34 include fastcgi_params;
35
36 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
37 }
38
39 # =========================
40 # XenForo PHP
41 # =========================
42 location ~ \.php$ {
43
44 include fastcgi_params;
45
46 fastcgi_pass unix:/run/php/php8.4-fpm.sock;
47
48 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
49 }
50 }