Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Apache2 modules can I safely disable?

These are my enabled mods:

alias auth_basic authz_default authz_groupfile authz_host authz_user autoindex deflate dir env mime negotiation php5 reqtimeout rewrite setenvif status

I'm attempting to reduce Apache's memory footprint as much as possible.

Can anyone guide me in the right direction as to which of these I absolutely need and which are optional? I plan on running Symfony, but I couldn't find any requirements about symfony to get it all working.

like image 934
gregghz Avatar asked Oct 10 '10 05:10

gregghz


People also ask

What are Apache modules?

Modules are service programs that can be dynamically linked and loaded to extend the nature of the HTTP Server. In this way, the Apache modules provide a way to extend the function of a Web server. Functions commonly added by optional modules include: Authentication.

How do I enable all Apache modules?

Go to Tools & Settings > Apache Web Server. Select Apache modules you want to enable or uncheck to disable. Apply the changes.


1 Answers

Well, you can start by disabling all auth / authz modules, unless you're going to have Apache do authentication work for you, in which case only enable the auth module that you're actually going to use.

You may not really need the autoindex module; you only need it if you'd like Apache to generate index files automatically.

deflate — you actually want that, so Apache can gzip-compress data before sending back to the client (dramatically reduces traffic).

reqtimeout — that's experimental. Not sure if you included it intentionally or not.

like image 147
Isaac Avatar answered Oct 08 '22 23:10

Isaac