use dual URLs

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
didds
Posts: 23
Joined: 18 Jan 2017, 16:24

use dual URLs

Post by didds »

MantisBT 2.5.0
(URLs masked for obvious reasons)

Currently we have a lovely working installation of 2.5.0 accessed from https://mantis.didds.eu.

This parameter is set

config/config_inc.php: $g_path = "https://mantis.didds.eu/";

We wish to use the same existing installation now with a second URL https://mantis.ian.eu

merely creating a DBS cname for mantis.ian.eu does not work - all that happens is a 302 redirect to https://mantis.didds.eu.

There may also be some underlying apache configs to overcome also but one thing at a time...

is there anything in the mantisbt cinfig I need to change/add/delete/whatever to permit mantisbt to handle both urls?

cheers

didds aka ian
jsonr
Posts: 4
Joined: 25 Apr 2018, 00:59

Re: use dual URLs

Post by jsonr »

If you unset the $g_path parameter in your config, does it work?

Normally, mantis should be able to figure out the server address from the request, but it may depend on your server config.
If you really need to set $g_path manually, then some condition that sets it to the correct server for the request based on whatever information is available should work.
Post Reply