Page 1 of 1

Change root url

Posted: Thu May 17, 2018 9:10 am
by nickbrookes
I'm running WonderCMS on docker behind an HAProxy. Running on docker the root url is 192.168.1.150:8089. This means that all of the urls start 192.168.1.150:8089/pagename.
Is there somewhere i can amend / set this default url to reflect the url i want to display to the internet. This will be something like www.mybusinessname.com.

Cheers

Nick

Re: Change root url

Posted: Fri May 18, 2018 1:26 pm
by wiz
Hey nick.

There is no real way to set a "base URL" within WonderCMS.
Would something like this help? https://github.com/robiso/wondercms/issues/47 (user with similar issue provided a fix)

Quote from the GitHub thread:
Dear @robiso your'e welcome.
Please have a look at https://github.com/katakombi/wondercms/ ... inx-docker where I forked wondercms and added a Dockerfile plus the related nginx/php configs.

This builds a container which hosts a wondercms in user space under port 8080.
For that docker needs to share the wondercms location under /var/www/html.
What users need to have is in particular the proper
https://github.com/katakombi/wondercms/ ... stcgi.conf
and https://github.com/katakombi/wondercms/ ... fg/default

Re: Change root url

Posted: Sat Jun 02, 2018 2:33 pm
by wiz
Hey Nick. Thought of another idea.
If you don't mind running a customized version of WonderCMS - can you also try changing the function url and hard code your website URL?

Also interested if you've possibly solved this already?