Apache

Apache commands

Find out whether you are using prefork or worker MPM

httpd -l

(That's a lowercase L)
Output:

core.c
prefork.c
http_core.c
mod_so.c

Becasue prefork.c is listed, apache will load the prefork settings in httpd.conf

htaccess

Setting the default file to load

DirectoryIndex index.php index.cgi index.pl otherfile.htm

 


Simple 301 Redirect

  RewriteCond %{HTTP_HOST} ^test\.example\.com
  RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
        

 

Subscribe to RSS - Apache