Take the 2-minute tour ×

in sites-available/default there is some default configuration.. like:



<Directory "/usr/share/doc/">

can I remove those or they are needed for some apache function?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Yes, you can safely remove them.

share|improve this answer
add comment

If you don't need CGI or the doc, it's safe to remove. But it might be that other programs you can install with your distribution are relying on the default CGI functionality and won't work as expected.

share|improve this answer
i will use only php so i don't need CGI. But this DOC alias i don't get what is used for –  llnk Feb 9 '11 at 16:14
As I said, other programs you might decide to install could require the CGI functionality and will fail to work if you disable it (IIRC Smokeping does this on Debian, to name an example). It normally doesn't matter but you have to be aware of it. The doc thing is easy: You can use yoursite/doc to read the Apache documentation. It's not important, just a comfort function. –  SvW Feb 9 '11 at 16:21
add comment

Your Answer


