Skip to content
procrastinatio edited this page Jun 17, 2014 · 3 revisions

Apache2 config as 17.06.2014

$ sudo apache2ctl -V
Server version: Apache/2.2.22 (Debian)
Server built:   Feb  1 2014 21:26:04
Server's Module Magic Number: 20051115:30
Server loaded:  APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
Architecture:   64-bit
Server MPM:     Prefork
threaded:     no
forked:     yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/etc/apache2"
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"`
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"`
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="mime.types"
-D SERVER_CONFIG_FILE="apache2.conf"

http.conf

<IfModule mpm_prefork_module>
  StartServers          5
  MinSpareServers       5
  MaxSpareServers      10
  MaxClients          150
  MaxRequestsPerChild   0
</IfModule>

wsgi.conf/mapproxy.conf in each vhosts:

WSGIDaemonProcess mf-chsdi3:main display-name=%{GROUP} user=www-data
WSGIScriptAlias /main/wsgi /home/main/mf-chsdi3/buildout/parts/modwsgi/wsgi

<Location /main/wsgi>
    WSGIProcessGroup mf-chsdi3:main
    WSGIApplicationGroup %{GLOBAL}
</Location>

See http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess

Clone this wiki locally