Tag Archive: dump

Find an article
Jun 3

How to dump nginx sites-enabled configuration

Published by in · Leave your thoughts
Warning! There was an error loading some of the images for this post.

I was recently a fool and accidentally deleted my nginx sites-enabled configurations. After endless mopping, I stumbled across this. If you add the below to file such as “find_nginx_config.sh”: # Set pid of nginx master process here pid=8192 # generate gdb commands from the process's memory mappings using awk cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory... Read Arcticle