index file nginx

  • This will work for most files. From the cli

    apt update

    apt install mlocate

    updatedb

    locate index.html

    See the last line. In the future updatedb before you locate as it is not updated automatically. If it returns many matches pipe it to grep.

    Code
    root@omv5:~# locate index.html | grep nginx
    /usr/share/nginx/html/index.html

    If you make it idiot proof, somebody will build a better idiot.

    Edited 3 times, last by donh ().

  • Hi donh, thanks. I found it.


    /var/lib/docker/overlay2/47a0cbc0124c3293b20993a1142920c7032793dad406a75f173a16f44e4e21ba/diff/usr/share/nginx/html/index.html

    /var/lib/docker/overlay2/481de0916d6ae60a77b50acc1e127373d16a7a9abdf5c0e4481ccd3f9af9076d/merged/usr/share/nginx/html/index.html

    /var/lib/docker/overlay2/f29da47fbd6347d85886702a32d8c31a83fdf9ebb22165bd9e314a8313155583/diff/var/lib/nginx/html/index.html

    /var/lib/docker/overlay2/f29da47fbd6347d85886702a32d8c31a83fdf9ebb22165bd9e314a8313155583/merged/defaults/index.html

    /var/lib/docker/overlay2/f29da47fbd6347d85886702a32d8c31a83fdf9ebb22165bd9e314a8313155583/merged/var/lib/nginx/html/index.html

    /var/lib/docker/volumes/c7b850f9ee56891be30d46ec429e96c4ef533aac7ad5948ab6cfcd8294f68e1e/_data/index.html


    The index.html was in the last line _date/

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!