# How to update nginx configuration of tutor

**URL:** https://discuss.openedx.org/t/how-to-update-nginx-configuration-of-tutor/8534
**Category:** Tutor Help
**Tags:** how-to, tutor
**Created:** [October 19, 2022, 11:15am UTC](https://discuss.openedx.org/t/how-to-update-nginx-configuration-of-tutor/8534 "2022-10-19T11:15:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Natnael](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/natnael/32/4433_2.png) [@Natnael](https://discuss.openedx.org/u/Natnael)
#### Post date: [October 19, 2022, 11:15am UTC](https://discuss.openedx.org/t/how-to-update-nginx-configuration-of-tutor/8534/1 "2022-10-19T11:15:50Z")

</div>

Hello guys, I’ve deployed the latest Open edX release (nutmeg) with tutor on a server.  
Tutor has done all the ssl stuff with the domain name I choose ([www.mydomain.com](http://www.mydomain.com)). Now I need to redirect my [https://mydomain.com](https://mydomain.com) to [https://www.mydomain.com](https://www.mydomain.com). How can I achieve this with the tutor installation.

Thanks in Advance.

---

<div class="post-metadata">

### Author: ![sbernesto](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sbernesto/32/90_2.png) [@sbernesto](https://discuss.openedx.org/u/sbernesto)
#### Post date: [October 19, 2022, 3:16pm UTC](https://discuss.openedx.org/t/how-to-update-nginx-configuration-of-tutor/8534/2 "2022-10-19T15:16:28Z")

</div>

hi,

In theory just run command tutor local quickstart, change the [domain.com](http://domain.com) to [www.domain.com](http://www.domain.com) and then modify your nginx and that would be it.

---

<div class="post-metadata">

### Author: ![uetuluk](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/uetuluk/32/3015_2.png) [@uetuluk](https://discuss.openedx.org/u/uetuluk)
#### Post date: [October 20, 2022, 2:21am UTC](https://discuss.openedx.org/t/how-to-update-nginx-configuration-of-tutor/8534/3 "2022-10-20T02:21:45Z")

</div>

Tutor comes with Caddy in Nutmeg instead of Nginx.

You can configure Caddy with a plugin to add a site in your Caddyfile that redirects [domain.com](http://domain.com) to [www.domain.com](http://www.domain.com).

Take a look at these resources for a start:

- Redir directive for Caddy: [redir (Caddyfile directive) — Caddy Documentation](https://caddyserver.com/docs/caddyfile/directives/redir)
- [Creating a Tutor plugin — Tutor documentation](https://docs.tutor.overhang.io/tutorials/plugin.html?highlight=plugins)
- List of Caddy Hooks for Tutor: [Template patches — Tutor documentation](https://docs.tutor.overhang.io/reference/patches.html#caddyfile)
