apache

Qmailadmin with Apache

Configuring Qmailadmin to work with the Apache webserver

Apache virtual host configuration
Edit /usr/local/apache2/conf/extra/httpd-vhosts.conf and add a virtualhost directive for Qmailadmin and webmail:

ServerAdmin postmaster@example.com
DocumentRoot /var/websites/mail/htdocs
ServerName mail.example.com

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

ScriptAlias /cgi-bin/ "/var/websites/mail/cgi-bin/

Technology:

Web Stats

Study the traffic to your website with a web stats analysis program.

Two popular Open Source packages for analysing web server log files are Awstats and Webalizer.

There is a detailed comparison at the Awstats website.

Technology:

Webserver configuration

Instructions for configuring Drupal sites on Apache, Lighttpd and nginx.

Apache Virtual Host Configuration
Enable the virtual host config file in /usr/local/apache2/conf/httpd.conf by uncommenting it:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

Edit /usr/local/apache2/conf/extra/httpd-vhosts.conf and add an entry for your new Drupal install:

ServerName www.domain.com
#ServerAlias *.domain.com
DocumentRoot /var/websites/projectname/drupal-5.10

Options Indexes FollowSymLinks
AllowOverride All

Apache config

Configuration instructions for serving Trac with Apache.

TracModMython wiki page with detailed Apache instructions.

Prerequisites
Apache requires mod_python to be installed in order to run Trac.

Simple Configuration
Edit /usr/local/apache2/conf/httpd.conf and add the following to instruct Apache to redirect any URLs starting with "/trac/" to Trac:

SetHandler mod_python
PythonInterpreter main_interpreter

Technology:

mod_python

Mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI

Technology:

WebDAV

Web-based Distributed Authoring and Versioning, or WebDAV, is a set of extensions to the Hypertext Transfer Protocol (HTTP) which allows users to collaboratively edit and manage files on remote World Wide Web servers.

Tutorial - http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Apache-WebDAV-LDAP-HOWTO.html#AEN228

Apache needs to be configured and compiled with the --enable-dav option.

Uncomment the WebDAV config file in /usr/local/apache2/conf/httpd.conf:

# Include conf/extra/httpd-dav.conf

Technology:

Apache

Installation instructions for using PHP with the Apache web server.

Compiling and Installing
Configure PHP with the options you want. In this case, we'll be adding Apache

./configure \
--enable-mbstring \
--with-gd \
--with-gettext \
--with-apxs2=/usr/local/apache2/bin/apxs \

Configuration options:

  • MySQL support

    --with-mysql=/usr/local/mysql
  • LDAP support
    --with-ldap
  • Curl support (required by Drupal's Feeds module)
    --with-curl

    Probably need to install curl-devel package first though:

    yum install curl-devel

Technology:

SSL Encryption

Secure communication with your web server by using self-signed SSL certificates.

The typical method of enabling SSL encryption in Apache is to use mod_ssl. A downside of that approach is that SSL does not work with name-based Virtual Hosts (Why can't I use SSL with name-based/non-IP-based virtual hosts?).

Technology:

LDAP Authentication

Apache can be configured to authenticate users against an LDAP database, such as Open Directory, part of Apple's OS X Server.

http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html
http://blog.case.edu/gps10/2005/02/23/apache2_ssl_ldap_authentication_howto
http://www.nies.ch/doc/apache-ldap-webdav.en.php
Prerequisites

yum install openldap-devel

Installation
To install LDAP authentication support in Apache, it must be configured with:

--with-ldap --enable-ldap --enable-authnz-ldap

NOTE: --with-ldap appears to be broken in Apache 2.2.9.
Might also need:

Pages

Subscribe to RSS - apache

Recent Updates

  • 2 years 2 days ago
  • 2 years 2 days ago
  • 2 years 5 days ago
    php 8.x
  • 2 years 6 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff