0

I have accidentally replaced my vhost file in sites-available in nginx. The file contained a lot of 301 redirects, which are still working while the reload command is not run. Does nginx store the files loaded from sites-available while running so that I can copy and restore it or do I have to write the entire file again?

Thanks a lot.

crzpiot
  • 109
  • 1

1 Answers1

0

Run nginx -T to get a dump of the current running configuration. This requires nginx 1.9.2 or later.

And for the love of gawd, set up backups.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940