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.

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

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
[...]

and

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