User Tools

Site Tools


servers:linux:nginx:mybb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:linux:nginx:mybb [2025/09/11 19:13] – [Server Block] Sean Rhoneservers:linux:nginx:mybb [2025/09/13 00:52] (current) Sean Rhone
Line 15: Line 15:
  
   * https://docs.mybb.com/1.8/install/requirements/   * https://docs.mybb.com/1.8/install/requirements/
 +  * https://docs.mybb.com/1.8/install/anonymous-statistics/
  
   sudo zypper install php-composer2   sudo zypper install php-composer2
Line 109: Line 110:
  
 ===== Server Block ===== ===== Server Block =====
- 
-  * https://docs.mybb.com/1.8/administration/configuring-search-engine-friendly-URLs/ 
  
   sudo -e '/etc/nginx/vhosts.d/forum.conf' && sudo systemctl reload 'nginx'   sudo -e '/etc/nginx/vhosts.d/forum.conf' && sudo systemctl reload 'nginx'
Line 129: Line 128:
 #    access_log  /var/log/nginx/forum-access.log; #    access_log  /var/log/nginx/forum-access.log;
 #    error_log  /var/log/nginx/forum-error.log; #    error_log  /var/log/nginx/forum-error.log;
- 
-    location / { 
-        rewrite ^/MyBB/forum-([0-9]+)\.html$ /MyBB/forumdisplay.php?fid=$1; 
-        rewrite ^/MyBB/forum-([0-9]+)-page-([0-9]+)\.html$ /MyBB/forumdisplay.php?fid=$1&page=$2; 
-        rewrite ^/MyBB/thread-([0-9]+)\.html$ /MyBB/showthread.php?tid=$1; 
-        rewrite ^/MyBB/thread-([0-9]+)-page-([0-9]+)\.html$ /MyBB/showthread.php?tid=$1&page=$2; 
-        rewrite ^/MyBB/thread-([0-9]+)-lastpost\.html$ /MyBB/showthread.php?tid=$1&action=lastpost; 
-        rewrite ^/MyBB/thread-([0-9]+)-nextnewest\.html$ /MyBB/showthread.php?tid=$1&action=nextnewest; 
-        rewrite ^/MyBB/thread-([0-9]+)-nextoldest\.html$ /MyBB/showthread.php?tid=$1&action=nextoldest; 
-        rewrite ^/MyBB/thread-([0-9]+)-newpost\.html$ /MyBB/showthread.php?tid=$1&action=newpost; 
-        rewrite ^/MyBB/thread-([0-9]+)-post-([0-9]+)\.html$ /MyBB/showthread.php?tid=$1&pid=$2; 
-        rewrite ^/MyBB/post-([0-9]+)\.html$ /MyBB/showthread.php?pid=$1; 
-        rewrite ^/MyBB/announcement-([0-9]+)\.html$ /MyBB/announcements.php?aid=$1; 
-        rewrite ^/MyBB/user-([0-9]+)\.html$ /MyBB/member.php?action=profile&uid=$1; 
-        rewrite ^/MyBB/calendar-([0-9]+)\.html$ /MyBB/calendar.php?calendar=$1; 
-        rewrite ^/MyBB/calendar-([0-9]+)-year-([0-9]+)\.html$ /MyBB/calendar.php?action=yearview&calendar=$1&year=$2; 
-        rewrite ^/MyBB/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ /MyBB/calendar.php?calendar=$1&year=$2&month=$3; 
-        rewrite ^/MyBB/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ /MyBB/calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4; 
-        rewrite ^/MyBB/calendar-([0-9]+)-week-(n?[0-9]+)\.html$ /MyBB/calendar.php?action=weekview&calendar=$1&week=$2; 
-        rewrite ^/MyBB/event-([0-9]+)\.html$ /MyBB/calendar.php?action=event&eid=$1; 
-    } 
  
 } }
Line 162: Line 140:
  
   * TODO   * TODO
 +
 +===== Offline Message =====
 +
 +  * Configuration -> Settings -> Board Online / Offline
 +
 +<code>
 +These forums are being built behind-the-scenes, check back later!
 +<br />
 +In the meantime, check out my wiki: <a href="https://wiki.realmofespionage.xyz/">RoE | Wiki</a>
 +</code>
  
 ===== config.php ===== ===== config.php =====
 +
 +  * https://docs.mybb.com/1.8/administration/utf-8-setup/
  
   sudo su 'wwwrun' -s '/bin/bash'   sudo su 'wwwrun' -s '/bin/bash'
Line 170: Line 160:
  
 <code> <code>
-TODO</code>+$config['database']['encoding'] = 'utf8mb4';</code> 
 + 
 +  exit
  
 ====== Services ====== ====== Services ======
Line 185: Line 177:
 Group=www Group=www
 Type=oneshot Type=oneshot
 +
 +Environment="COMPOSER_CACHE_DIR=/dev/null"
  
 ExecStart='/usr/bin/git' -C '/srv/www/forum' pull origin 'dev-1.9' ExecStart='/usr/bin/git' -C '/srv/www/forum' pull origin 'dev-1.9'
 +
 +ExecStart='/usr/bin/composer' --working-dir='/srv/www/forum' --no-cache install
  
 ExecStartPost='/usr/bin/sync' ExecStartPost='/usr/bin/sync'
/srv/www/wiki/data/attic/servers/linux/nginx/mybb.1757632432.txt.gz · Last modified: by Sean Rhone