Not Solved How to properly configure multiple mirrors of the forum
#1
Not Solved Question 
Greetings,

I'm trying to establish a setup where a few domains point to the same forum. This isn't for development or backup purpose but to circumvent censorship in some countries. To clarify:
example.com   ->  
example.onion ->  | same forum |
another.net      ->  

So the question is how to properly configure MyBB for this task? As I understand, MyBB supports only single Forum URL.

My hosting is a VPS with Docker support. So I'm considering the following scheme:
1. Single Nginx container to handle and route all the requests
2. php-fpm container per each domain with separate instance of MyBB so it can have proper configuration for this particular domain
3. Single database to store all the data

Is this a viable approach? Are there any hidden pitfalls?
Can this be optimized to avoid a container per domain? Like, advanced Nginx config to convert URLs and cookies back and forth?

Thanks in advance,
DTG
Reply
#2
Not Solved
not sure about NGINX configuration for above requirement. you can try using ABP multi domain plugin
Reply
#3
Not Solved
(2018-06-26, 03:29 AM).m. Wrote: not sure about NGINX configuration for above requirement. you can try using ABP multi domain plugin

Can this be done using sub-domains? Have those sub-domains point to the same DB would look like a logical route to take.
I'm Serpius and You're Not    ¯\_(ツ)_/¯
Reply
#4
Not Solved
(2018-06-26, 02:50 PM)Serpius Wrote:
(2018-06-26, 03:29 AM).m. Wrote: not sure about NGINX configuration for above requirement. you can try using ABP multi domain plugin

Can this be done using sub-domains? Have those sub-domains point to the same DB would look like a logical route to take.
No as the settings table requires specific information such as the URL. I’ve never seen this done with a MyBB forum though... will see if I can find a way.
Plugin Count: I lost count.
Public Plugins are available here.
Please do not PM me for support unless asked to.
Reply
#5
Not Solved
Thanks for the replies!

(2018-06-26, 03:29 AM).m. Wrote: not sure about NGINX configuration for above requirement. you can try using ABP multi domain plugin

Need to check this out, though looks like it is from 2015...

(2018-06-26, 02:50 PM)Serpius Wrote: Can this be done using sub-domains? Have those sub-domains point to the same DB would look like a logical route to take.

Sub-domains are not enough - need to use completely independent domains.

(2018-06-26, 03:57 PM)Wires Wrote: No as the settings table requires specific information such as the URL. I’ve never seen this done with a MyBB forum though... will see if I can find a way.

If Forum URL is stored in DB that would be a PITA Sad I was hoping to keep separate settings.php and the same db. Though probably this can still be achieved with relatively small code modification?
Reply
#6
Not Solved
Update:

  1. ABP multidomain plugin doesn't work for me (SQL error)
  2. I have tried using the forum with empty baseurl. It seems to work and becomes accessible from different domain names. So what are the consequences of using empty baseurl?

    So far I have noticed only "View Forum" link at ACP becomes invalid (points to current url).

Reply


Forum Jump:


Users browsing this thread: