A cheatsheet for htaccess.
Use Apache commands to switch from serving up your site to a maintenance site you have ready to go.
Create an htaccess file that requires authentication for everywhere except a whitelist of routes.
Example Apache SSL configuration file that you can use and tweak to your needs
Here we compare Nginx vs Apache at handling burst workloads and explain why one of them appears to handle it much better than the other.