Apache | CentOS

I'm using Apache with the Index directory option. When users visit the web address, they see a path mentioned in text on that same page. For example, they'll see the phrase: "Index of /misc". Is there a way to remove this text summary of the directory the user is looking at?

link|improve this question

75% accept rate
feedback

1 Answer

You can specify your customized header file in httpd.conf

Add this line to your httpd.conf

HeaderName header.html # path must be relative

Then create and place header.html into directory containing httpd.conf (/etc/httpd/conf for example).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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