Skip to content

Configuration: Linux Tuning LAMP

cpx October 24, 2008 1 min read GNU/Linux

Listing 1. Configuration of the prefork MPM

StartServers 50 MinSpareServers 15 MaxSpareServers 30 MaxClients 225 MaxRequestsPerChild 4000

Listing 2. A Directory container being applied to the root directory

<Directory /> AllowOverride None Options FollowSymLinks </Directory>

asd
Listing 3. Restricting FollowSymLinks to a user’s directory

<Directory /> Options FollowSymLinks </Directory> <Directory /home/*/public_html> Options -FollowSymLinks </Directory>

Listing 4. Moving .htaccess configuration into httpd.conf

<Directory /home/user/public_html/project/> AuthUserFile /home/user/.htpasswd AuthName "uber secret project" AuthType basic Require valid-user </Directory>

Listing 5. Scoping .htaccess checking

<Directory /> AllowOverrides None </Directory> <Directory /home/*/public_html> AllowOverrides AuthConfig </Directory>

sad

Be the first to comment

protected · no tracking

0 comments