Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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