Change root url

Welcome to the WonderCMS community. Anything goes, except for support requests.
Post Reply
nickbrookes
Posts: 3
Joined: Wed May 16, 2018 9:01 am

Change root url

Post 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
User avatar
wiz
Admin
Posts: 700
Joined: Sat Oct 30, 2010 12:23 am

Re: Change root url

Post 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
User avatar
wiz
Admin
Posts: 700
Joined: Sat Oct 30, 2010 12:23 am

Re: Change root url

Post 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?
Post Reply