Apache

http://httpd.apache.org/docs/current/howto/htaccess.html - continue reading from the "How directives are applied" section
http://speckyboy.com/2012/07/26/what-is-htaccess/
http://net.tutsplus.com/tutorials/apache-2-advanced-configuration-on-unix-like-systems
http://www.instantshift.com/2012/08/21/how-to-get-the-most-out-of-your-htaccess-file
http://corz.org/serv/tricks/htaccess.php
http://apache.slashdot.org/story/12/02/21/1632230/apache-24-takes-direct-aim-at-nginx
http://net.tutsplus.com/tutorials/apache-2-basic-configuration-on-unix-like-systems/
http://net.tutsplus.com/tutorials/apache-2-advanced-configuration-on-unix-like-systems/
http://net.tutsplus.com/tutorials/other/password-protect-folders-in-seconds/
http://net.tutsplus.com/tutorials/other/an-introduction-to-apache/
http://net.tutsplus.com/articles/news/htaccess-files-for-the-rest-of-us/
http://net.tutsplus.com/tutorials/other/a-deeper-look-at-mod_rewrite-for-apache/
http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/
http://net.tutsplus.com/tutorials/other/5-fun-and-practical-htaccess-solutions/
http://net.tutsplus.com/tutorials/other/the-ultimate-guide-to-htaccess-files/
http://www.sitepoint.com/using-htaccess-prevent-web-scraping

http://furbo.org/2015/01/22/fear-china/ - done reading
http://speckyboy.com/2012/06/18/using-the-power-of-the-htaccess-file-to-improve-wordpress-seo/ - done reading
http://www.sitepoint.com/htaccess-for-all/ - done reading
http://net.tutsplus.com/tutorials/apache-aliasing-and-redirection/ - done reading
http://code.tutsplus.com/tutorials/apache-aliasing-and-redirection--net-28606 - done reading

Proxy
Sending Apache Logs to Syslog
.htaccess
Security and Performance
VirtualHost
mod_rewrite
Misc

How to check if the configuration files are valid?

httpd -S

How to start or stop apache using a different configuration file?

/usr/sbin/httpd -k start -f /etc/httpd/conf/httpd.conf
/usr/sbin/httpd -k stop -f /etc/httpd/conf/httpd.conf

How to start apache in single process mode?

/usr/sbin/httpd -k start -X -f /etc/httpd/conf/httpd.conf

Problem with single process mode and share memory

If you frequently restart your sandbox in single process mode, occassionally you may get an error "…". Here is how I clean up share memory segments:

ipcs -s | gawk '{ print $2 }' | grep -P '\d' | xargs -n 1 ipcrm -s

What is an MPM?

MPM stand for Multi-Processing Modules. It is a modular design / API that allow apache to be easily ported to a wide variety of platforms in a range of different environments. Different platforms and different environments often require different features, or may have different ways of implementing the same feature most efficiently. This design allows the webmaster to choose which features to be included in the server by selecting which modules to load either at compile-time or at run-time.

At the user level, MPMs appear much like other modules. The main difference is that one and only one MPM can be loaded into the server at any time. MPMs must be chosen during configuration, and compiled into the server. Compilers are capable of optimizing a lot of functions if threads are used, but only if they know that threads are being used. Different distribution (operating system) may provide different binaries for different mpm. For example, RedHat ES4 or Fedora Core 4 provide /usr/sbin/httpd.worker for the worker (threaded) mpm, and /usr/sbin/httpd for the prefork mpm.

How do I know which mpm is currently used?

From command line, you can specify -l option to either /usr/sbin/httpd or apachectl. From inside your code, you can call ap_mpm_query()

How can we build the debuginfo rpm

In order to build the debuginfo rpm for a particular rpm package, the src rpm of the respective package needs to be obtained. In this example, we will build the debuginfo rpm for httpd package.

up2date -d httpd --src --get (see the up2date man page) 
cd /var/spool/up2date 
rpm -i  *.src.rpm (and install any dependent packages if necessary) 
rpmbuild -bb /usr/src/redhat/SPECS/httpd.spec (This re-build the packages) 
cd /usr/src/redhatRPMS/i386 (the debuginfo rpm should be here)

What are other web servers?

What are some load balancing software?

  • mod_proxy
  • perlbal

What are some tools for load testing?

Other:

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License