Apache’s mod_userdir allows users to view their sites by entering a tilde(~) and their username as the uri on a specific host. For example http://test.cpanel.net/~fred/ will bring up the user fred’s domain. The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under (in this
How to Disable Trace in Apache
To disable TRACE in cPanel (Version 11.24.4):
1.Access your Web Hosting Manager (WHM)
2.Under Service Configuration, click the link for Apache Configuration
Find Apache Web Server Syntax Errors
How to Find Apache Web Server Syntax Error
Executing the following command, that will detect syntax errors:
Centos/RHEL
Common Apache Web Server Errors
In linux/unix enviroment, Apache is the most widely used web server on dedicated or cloud servers.
Here are few common errors one might get and what they could mean:
Setting up an SSL Secured Webserver with CentOS
Installing the required files
Mod_ssl sets up the self -signed certificate
Yum install mod_ssl openssl –y
Add a New Site to Apache
Apache Webserver Will Not Restart / Start
Check for config syntax error
Almost all web server including Apache supports config file syntax checking. To run syntax check for config files, enter:
# httpd –t
# httpd –S
Apache URL Rewrite
- On some webservers there are more than one URL for a resource. Usually there are canonical URLs (which should be actually used and distributed) and those which are just shortcuts, internal ones, etc. Independent of which URL the user supplied with the request he should finally see the canonical one only. Add the following changes to the .htaccess file for the domain you wish to rewrite.
- Read More
How to Setup a LAMP Server on CentOS 6
Setting MaxClients in Apache/prefork MPM
- Determine how much RAM is available to Apache
- Determine how much RAM each Apache process uses
- Set MaxClients to: (RAM available to Apache) / (RAM per Apache process)