I've accidentally deleted the index.html apache2 test page that apache creates in /var/www/html/. Is there a way I can re-create it?

  • Have you checked that it isn't in the recycle bin? – George Udosen Aug 16 '17 at 10:10
  • 1
    I used 'sudo rm' to remove it so I didn't find it in the recycle bin. Byte Commander's answer sorted the issue though. – Asim Aug 17 '17 at 10:45

The default Apache 2 test page is part of the apache2-data package that automatically gets installed with apache2.

You can find it in the location


Simply copying that file back to /var/www/html should do what you want to achieve.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.