Enable UserDir on CentOS vhosts

Edit the /etc/httpd/conf/httpd.conf file. Change the ‘UserDir disabled’ line to ‘UserDir enabled ’. Uncomment the ‘UserDir public_html’ line. Also uncomment the whole ‘’ section until the ‘’. Apply the proper permissions:

Compressing web pages with mod_deflate

The mod_deflate module allows the Apache2 web service to compress files and deliver them to clients (browsers) that can handle them. With mod_deflate you can compress HTML, text or XML files by up to 70% of their original sizes. Thus, saving you server traffic and speeding up page loads. Compressing files will increase load on … Read more

Apache Error

Options ExecCGI FollowSymLinks IncludesNOEXEC Indexes Limit SymLinksIfOwnerMatch AllowOverride All results in an error – Syntax error on line 71 of /usr/local/apache/conf/httpd.conf Based on my understanding, it first disables FollowSymLinks and enables SymLinksIfOwnerMatch at the httpd.conf level and it applies to all the files and subdirectories present inside, /home. The next directive, AllowOverride. By writing “All”, … Read more

Apache Virtual Host Containers in Separate Files

1. Introduction With the size of the Apache configuration file what it is, it can be easier to find and change a virtual host container (configurations) if the settings are in separate files. This isn’t strictly recommended by the upstream documentation, but is a common manual extension to make the system more manageable. All manual … Read more

HTTP Strict Transport Security (HSTS)

HTTP Strict Transport Security (HSTS) is an opt-in browser security mechanism that lets web site owners declare “Encrypted Communications Only”. Strict-Transport-Security HTTP header instructs browsers to only communicate with the domain over SSL/TLS for a set period of time (the max-age). HSTS only goes into effect after a browser receives a valid header from the … Read more

Optimize apache

Home »Service Configuration »Apache Configuration »Global Configuration Other options: –addition of memcache –recompiling Apache to run as PreFork opposed to MPM Worker Event Check for Prefork or Worker Links: http://kb.sp.parallels.com/en/113007 http://codebucket.co.in/apache-prefork-or-worker/ –Reduced some of the limits in the apache config. Many things that should be in the hundreds were set in the thousands. –KeepAlive on … Read more