# NGINX will to restart when adding or changing web domains

**URL:** <https://forum.hestiacp.com/t/nginx-will-to-restart-when-adding-or-changing-web-domains/7644>\
**Category:** Web\
**Created:** [September 29, 2022, 9:41am UTC](https://forum.hestiacp.com/t/nginx-will-to-restart-when-adding-or-changing-web-domains/7644 "2022-09-29T09:41:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lamnian](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/l/76d3ee/32.png) [@lamnian](https://forum.hestiacp.com/u/lamnian)\
**Post date:** [September 29, 2022, 9:41am UTC](https://forum.hestiacp.com/t/nginx-will-to-restart-when-adding-or-changing-web-domains/7644/1 "2022-09-29T09:41:43Z")

</div>

Hello,

When adding or changing web domains, NGINX will not auto restart. I have to go and do it manually. This is especially a problem when I add let’s encrypt certificates.

Running `nginx -t` I get the following:

> nginx: the configuration file /etc/nginx/nginx.conf syntax is ok  
> nginx: configuration file /etc/nginx/nginx.conf test is successful

This and the fact that I can restart it manually both from the command line and the panel shows that it is not a problem with the config.

Any Ideas?

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [September 29, 2022, 10:17am UTC](https://forum.hestiacp.com/t/nginx-will-to-restart-when-adding-or-changing-web-domains/7644/2 "2022-09-29T10:17:34Z")

</div>

If you do it via the admin we should always restart nginx.

Via CLI / API make sure to add the restart flag

> <https://github.com/hestiacp/hestiacp/blob/main/bin/v-add-web-domain>

And

> <https://github.com/hestiacp/hestiacp/blob/44e3131312ed21f3e6a3132fb8e93f11ff07e0a1/web/add/web/index.php#L70>

---

<div class="post-metadata">

**Author:** ![lamnian](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/l/76d3ee/32.png) [@lamnian](https://forum.hestiacp.com/u/lamnian)\
**Post date:** [September 29, 2022, 10:13pm UTC](https://forum.hestiacp.com/t/nginx-will-to-restart-when-adding-or-changing-web-domains/7644/3 "2022-09-29T22:13:56Z")

</div>

I do it through the admin only…

 ![Screenshot 2022-09-30 at 8.13.13 AM](https://forum.hestiacp.com/uploads/default/original/2X/e/e19b05c679849b1befcf871e8ab9258525a0b3df.png)
