Mattermost-server: [MM-12958] Support running two Mattermost instances on the same domain using subpaths

Created on 22 Feb 2019  路  5Comments  路  Source: mattermost/mattermost-server

If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.


Notes: Jira ticket

Mattermost has the ability to run on a subpath of a domain. For example, instead of hosting at chat.example.com you could host Mattermost at example.com/chat.

Right now, however, you cannot host two Mattermost instances at different subpaths of the same domain. E.g. example.com/chat1 and example.com/chat2

One reason for this that the browser cookies are across the whole domain, not the subpath, so you can't be logged into two independent servers running on two different subpaths. For example, if you logged in to example.com/chat1 then went to example.com/chat2 and logged in, you would be logged out of example.com/chat1 because the cookie would get overridden.

For this ticket:

  • Update the cookies used by Mattermost to include the subpath
  • Test running two Mattermost instances at a subpath to make sure that it works and fix any other problems that arise

If you have any questions or want to discuss the ticket, feel free to ask @jesse.hallam or @harrison in the ~Developers channel on community.mattermost.com

Medium Help Wanted PR Exists TecGo

All 5 comments

I am taking a look at this.

Thanks for taking care of this @d28park! Let us know, if you have any questions.

@d28park have you had a chance to make an progress on this? Feel free to let us know if you have any questions

@jwilander yup, I'm making some progress on this. Fixing up some bugs and will reach out in the developers channel if I get stuck

Awesome, thanks @d28park

Was this page helpful?
0 / 5 - 0 ratings