Skip to main content
Topic: ElkArte and HaProxy (Read 642 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ElkArte and HaProxy

Hello,

this information may be useful:

I tried to use ElkArte with HaProxy (it is a reverse proxy) but I had weird display:angry:

Searching the smf forum, I found the information:

  • In "Settings.php", change $boardurl to '' (WARNING! This cannot be done using the web GUI because it will default to 'http://' and break your forum!!)
  • Update the MySQL 'settings' table and change all URLs from absolute to relative
  • Update the MySQL 'themes' table and change all URLs from absolute to relative

To fix my forum I used the following queries:

Code: [Select]
UPDATE settings SET value=REPLACE(value,'http://forum.domain.tld','') WHERE value LIKE 'http://forum.domain.tld%';
UPDATE themes  SET value=REPLACE(value,'http://forum.domain.tld,'') WHERE value LIKE 'http://forum.domain.tld%';

and the display is OK now:thumbsup:

Last Edit: March 22, 2023, 04:41:27 am by sergiodadi
--
Sergiodadi

Re: ElkArte and HaProxy

Reply #1

Cool .... Thank you for sharing this

 

Re: ElkArte and HaProxy

Reply #2

I normally use repair_settings.php for that.

Re: ElkArte and HaProxy

Reply #3

Does the repair_setting you wrote for SMF also work for Elkarte?


Re: ElkArte and HaProxy

Reply #5

I try to update that from time to time ..... check https://github.com/elkarte/tools to see if there is an update