Nginx configuration recovery

Styopa Semenukha semenukha at gmail.com
Tue Mar 17 19:35:58 UTC 2015


On Tuesday, March 17, 2015 01:24:52 PM vinay bhargav wrote:
> Hi,
> 
> Sorry for spamming but I'm in deep trouble.
> 
> I've accidentally overwritten /etc/nginx/site-availabe/default with some
> xyz file. I'm using Ubuntu 14.04. The server is still running. Is there any
> way I could recover the config file.
> 
> Note: Recovering the default file is very important for me.
> 
> Thanks in advance,
> Vinay.

Hi,

If you need the _stock_ file from the repository, this should do:
cd /tmp && apt-get download nginx && dpkg -x nginx*.deb

If you mean the file you had previously _modified_, I don't think it's possible.
-- 
Best regards,
Styopa Semenukha.



More information about the nginx mailing list