Score:0

Show content of loaded sites-available in apache2 under ubuntu 18

lb flag

I accidentally deleted a .conf in /etc/apache2/sites-available.

Is there a way to retrieve the content of it? When I type a2query -s, I see that the deleted .conf is still loaded, since I did not restart apache2 yet. I want to see the content of it.

Paul avatar
cn flag
Maybe you can try this https://serverfault.com/questions/733961/is-there-a-command-to-get-apache-to-display-its-running-config-from-memory ?
Selphiron avatar
lb flag
Unfortunately, it did not work. I get this error in a loop: `[Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ^C0x00007fcd3194ecd7 in __GI___select (nfds=0, readfds=0x0, writefds=0x0, exceptfds=0x0, timeout=0x7ffdb9e0fdd0) at ../sysdeps/unix/sysv/linux/select.c:41 41 ../sysdeps/unix/sysv/linux/select.c: No such file or directory. [Inferior 1 (process 7720) detached]` 7720 is the PID of apache2.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.