Apache

Password Protect a Directory

1. Create a .htaccess file AuthName “Secure Area” AuthType Basic AuthUserFile /path/to/your/directory/.htpasswd require valid-user 2. Create a .htpasswd file under the account using this command htpasswd -c .htpasswd your-user-name and give the password 3.  If you have more than one user, then htpasswd .htpasswd another-user-name 4. Make sure the permission […]

EasyApache Custom Modules

Custom Apache and PHP modules add features to the EasyApache system, and are accessible from both the command line and graphical WHM interfaces. These modules are compiled into Apache and/or PHP just like the modules provided with EasyApache. Before you begin You can find documentation for creating custom modules your […]

Choosing MaxClients

The MaxClients directive sets the limit on the number of simultaneous requests that can be supported. No more than this number of child server processes will be created. To configure more than 256 clients, you must edit the HARD_SERVER_LIMIT entry in httpd.h and recompile. In our case we want this […]

Installing subversion with apache on centos

A step by step guide on installing subversion with http support on centos and redhat machine First of all, install apache/httpd yum install httpd Make sure you apache is running. You can also type ‘http://localhost’ at your browser and apache test page should appear if your apache is running /etc/init.d/httpd […]

Apache Tips: Disable the HTTP TRACE method

Applies: apache 1.3.x / apache 2.0.x Required apache module: – Scope: global server configuration Type: security Description: How to disable the HTTP TRACE method on recent apache versions. Most vulnerability scanners (like the popular nessus, but commercial ones also) will complain (normally as a low thread or warning level) about […]

Apache2 mod_fastcgi: Connect to External PHP via UNIX Socket or TCP/IP Port

Now, mod_fastcgi is configured and running. FastCGI supports connection via UNIX sockets or TCP/IP networking. This is useful to spread load among various backends. For example, php will be severed from 192.168.1.10 and python / ruby on rails will be severed from 192.168.1.11. This is only possible with mod_fastcgi. Required […]

Set HTTP Expires header

With Apache, one easy way to do this is to generate a link that contains a build/version number or date in the path, e.g: /css/{build-number-or-date}/file.css In Apache, in your configuration file (e.g. .htaccess if that is all you have access to) you can set the Expires header and rewrite your […]

Easyapache failing on CentOS server

Had an issue with one on our CentOS cPanel servers running 64 bit and cPanels easyapache upgrade. The folks at cPanel helped out with their usual professional response The cause of the EasyApache failure, according to the log, was a failure of the package manager, in this case yum.  This […]

Tuning the Apache MaxClients parameter

This parameter defines how many simultaneous request can be served. Any connection request from browsers that come in after that will be queued. Apache prefork, StartServers, MaxSpareServers and MinSpareServers In the most common case, you It’s apply volumizing payday the wait up. Hahaa quick cash loans the conditioner man presence […]