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: # chmod 711 ~ # chmod 755 -R ~/public_html/ # # UserDir is disabled by default since it can confirm the presence # of a username on the system…

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", it allows all the Directives…

Apache fails to start with syntax errors on plesk

Apache fails to restart on plesk server on CentOS 6.5 # service httpd restart Stopping httpd: [FAILED] Starting httpd: Syntax error on line 55 of /etc/httpd/conf/plesk.conf.d/ip_defalt/domain.com.conf: SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-6xg952' does notexist or is empty Solution: # /usr/local/psa/admin/sbin/httpdmng --reconfigure-all # service httpd restart

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 domain. HSTS is to ensure…

Optimize apache

Home »Service Configuration »Apache Configuration »Global Configuration Minimum Spare Servers 8 Maximum Spare Servers 32 Max Clients 1500 Max Requests Per Child 0 Start Servers 8 Server Limit 2000 Keep-Alive Timeout 15 Max Keep-Alive Requests 256 Other options: --addition of memcache --recompiling Apache to run as PreFork opposed to MPM Worker Event Check for Prefork or Worker # [root@austin ~]# /usr/sbin/httpd -V | grep MPM # Server MPM: Prefork…