# Forcing a fresh Nginx restart on `trellis deploy production`

**URL:** https://discourse.roots.io/t/forcing-a-fresh-nginx-restart-on-trellis-deploy-production/27850
**Category:** trellis
**Created:** 2024-08-02T05:56:25Z
**Posts:** 6
**Showing post:** 3 of 6

## Post 3 by @ben — 2024-08-02T14:10:29Z

> [@hstandeffer](#):
>
> and in the process purged all nginx related configurations. When I got it working and ran `trellis deploy production`, no nginx server blocks/sites-available were added as they were previously. I tried manually adding them but am getting an nginx 500 error on my domain.

What does this mean?

> [@hstandeffer](#):
>
> Are there any steps to run this and create the nginx files ‘from scratch’?

Destroy the server and provision a new one

> [@hstandeffer](#):
>
> Just tried a fresh provision in production and am getting `"No package matching 'php7.4-dev` as an error now, but see in my production server that php 7.4 as a version is present

Please read [How to best ask questions on this forum](https://discourse.roots.io/t/how-to-best-ask-questions-on-this-forum/24582)

---

_[View the full topic](https://discourse.roots.io/t/forcing-a-fresh-nginx-restart-on-trellis-deploy-production/27850)._
