- FCGID notes - You need mod_fcgid and suexec enabled. <VirtualHost *:80> ServerName drupal DocumentRoot /home/steph/webapps/drupal/ <Directory "/home/steph/webapps/drupal/"> Order allow,deny Allow from all AllowOverride All Options ...
- Prevent password prompt when starting Apache's SSL - When OpenSSL is first configured it is normal to encrypt the SSL encryption key. This means that when the SSL is started a password is required so that the key can be decrypted. To prevent this happening you simply store the key unencrypted. To d...
- Apache basic authentication - In .htaccess: AuthType Basic AuthName "Restricted Files" AuthUserFile /the/location/of/.htpasswd (or /the/location/of/whatever/pass/file) Require user the_username In vhost: <VirtualHost *:80> ServerName www.example.com ServerAdmin webma...
- SuExec notes - Enable suexec module to allow users to run CGI scripts etc as themselves. In debian lenny… a2enmod suexec /etc/init.d/apache2 reload apt-get install apache2-suexec Virtual hosts and the docroot setting suexec is normally compiled with its docroot...
- What to do if Apache is incorrectly looking in /usr/htdocs for documents. - Apache 2, Gentoo linux. Sometimes Apache 2 may look for documents in /usr/htdocs, instead of in whatever directory you've specified in /etc/apache2/httpd.conf (with the DocumentRoot directive). This could be because you don't have a virtual host set ...
- Compiling Apache 2.x with SSL on Red Hat 9 - On compiling Apache 2.x with SSL on a Red Hat 9 system I received the error "krb5.h: no such file or directory". This is because Redhat decided to put the kerberos header files in /usr/kerberos/include instead of /usr/include. To get around the probl...
- Apache 2 hangs when not enough entropy - If Apache2 hangs, it could be because the system doesn't have enough entropy, which is needed by mod_auth_digest. To check how much entropy you've got, run cat /proc/sys/kernel/random/entropy_avail. Apache2 needs > 100. To generate more entropy you ...
- Edit the Apache .htpasswd authentication file - Warning: Be careful with the switches because it's easy to overwrite existing configuration. To edit an Apache authentication file - referred to in these examples as [filename] - use the htpasswd or htpasswd2 command. You will be prompted to enter a ...
- Apache htaccess notes - Notes about Apache’s htaccess aka HyperText Access files. Prevent Apache listing directory contents To hide a directory from listing via a browser add an .htaccess inside the directory that contains the following: IndexIgnore * The * is a wildcar...
- Apache MPM Prefork vs Worker - MPM prefork is a non-threaded pre-forking server. Is it thread safe. MPM worker is a multi-process multi-threaded server. It is not thread safe. Prefork is generally recommended for servers that will be serving PHP applications, as may libraries are ...
Apache
Last modified: 04/06/2007 Tags: apache