# \[Solved\] Using an alternate SSL port, need to change site URL

**URL:** <https://forum.mattermost.com/t/solved-using-an-alternate-ssl-port-need-to-change-site-url/16741>\
**Category:** Troubleshooting\
**Created:** [August 27, 2023, 2:27am UTC](https://forum.mattermost.com/t/solved-using-an-alternate-ssl-port-need-to-change-site-url/16741 "2023-08-27T02:27:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pssadamz](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@pssadamz](https://forum.mattermost.com/u/pssadamz)\
**Post date:** [August 27, 2023, 2:27am UTC](https://forum.mattermost.com/t/solved-using-an-alternate-ssl-port-need-to-change-site-url/16741/1 "2023-08-27T02:27:35Z")

</div>

Installed the Mattermost omnibus on Ubuntu 22, and while the omnibus makes things super easy if everything is default, I’m finding it entirely too frustrating to do something as simple as changing the site URL. I am using an alternate port for SSL (since I have another web server on the same public IP, 443 isn’t available, so I’m using 8443). All I want to do is change the site URL because a lot doesn’t work right if you don’t have that right. There’s a nice UI for it, but it’s all LOCKED UP saying that  
“This setting has been set through an environment variable. It cannot be changed through the System Console.”  
which is SUPER infuriating, especially since I cannot find where to change the environment variable and ALL of the documentation still refers to this UI which is not usable.

---

<div class="post-metadata">

**Author:** ![pssadamz](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@pssadamz](https://forum.mattermost.com/u/pssadamz)\
**Post date:** [August 29, 2023, 3:08am UTC](https://forum.mattermost.com/t/solved-using-an-alternate-ssl-port-need-to-change-site-url/16741/2 "2023-08-29T03:08:14Z")

</div>

1. There IS NO config.json file in /opt/mattermost/config
2. I looked at the configurations table. The site URL is NOT present in those settings either, so I don’t actually know WHERE it’s getting the site URL.

---

<div class="post-metadata">

**Author:** ![john.combs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/john.combs/32/7118_2.png) [@john.combs](https://forum.mattermost.com/u/john.combs)\
**Post date:** [September 1, 2023, 2:14am UTC](https://forum.mattermost.com/t/solved-using-an-alternate-ssl-port-need-to-change-site-url/16741/3 "2023-09-01T02:14:40Z")

</div>

Heya Adam! Thanks for reaching out, and welcome to the Mattermost Community Forums!

I apologize for the frustration you’re experiencing with changing the site URL in Mattermost. To change the site URL when using the Mattermost omnibus on Ubuntu, you can modify the environment variable `MM_SERVICESETTINGS_SITEURL` through the command line. Here’s how you can do it:

1. Access your Mattermost server via SSH or open a terminal session.
2. Run the following command to edit the Mattermost service environment file:

```auto
sudo nano /etc/mattermost/mattermost.env

```

1. Look for the line that starts with `MM_SERVICESETTINGS_SITEURL` and modify it to your desired URL. For example:

```auto
MM_SERVICESETTINGS_SITEURL=https://your-new-url.com

```

1. Save the changes and exit the editor.
2. Restart the Mattermost service to apply the new configuration:

```auto
sudo systemctl restart mattermost

```

By modifying the `mattermost.env` file, you’ll be able to change the site URL for your Mattermost server. After restarting the service, the new URL should take effect.

Regarding the missing `config.json` file, the Mattermost omnibus package uses environment variables for configuration instead of a JSON file. The `mattermost.env` file is the place to modify these variables.

I hope this helps! Let me know if you have any further questions.

Best regards,  
~Matterbot 2.0 🤖

_[ **Disclaimer:** This is a new AI response feature we’re testing powered by ChatGPT. Please note that this suggestion may not always reflect official Mattermost recommendations or support.  
Were any of the above suggestions inaccurate? **Let us know by replying to this comment!** ]_

---

<div class="post-metadata">

**Author:** ![pssadamz](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@pssadamz](https://forum.mattermost.com/u/pssadamz)\
**Post date:** [September 1, 2023, 3:33am UTC](https://forum.mattermost.com/t/solved-using-an-alternate-ssl-port-need-to-change-site-url/16741/4 "2023-09-01T03:33:04Z")

</div>

Thank you John! That got me past that error, though in my install there was not a mattermost.env file in that directory. There was a mmonmi.mattermost.env file, but changing the value there appears to have worked. Now if only I could get SMTP to work!

---

<div class="post-metadata">

**Author:** ![john.combs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/john.combs/32/7118_2.png) [@john.combs](https://forum.mattermost.com/u/john.combs)\
**Post date:** [September 7, 2023, 12:11am UTC](https://forum.mattermost.com/t/solved-using-an-alternate-ssl-port-need-to-change-site-url/16741/5 "2023-09-07T00:11:26Z")

</div>

Huzzah! Thanks so much for following up to let us know, Adam! Glad to hear you were able to get it figured out.
