Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">


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

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

share|improve this question
up vote 0 down vote accepted

Yes, you can safely remove them.

share|improve this answer

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 – dynamic 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. – Sven Feb 9 '11 at 16:21

Your Answer


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.