httpd -V gives me:

Server version: Apache/2.4.10 (Unix)
Server built:   Dec  1 2014 10:32:19
Server's Module Magic Number: 20120211:36
Server loaded:  APR 1.5.1, APR-UTIL 1.5.4
Compiled using: APR 1.5.1, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM:     prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -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 SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/etc/httpd"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_PIDLOG="/var/logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 
I have set this option in the global httpd.conf;

WSGISocketPrefix var/run/apache

I have no more socket errors anymore, so that part seems to work fine

Here is the httpd.conf for my virtual host (I have only setup port 80):

<Directory "/home/stacaravan/public_html">
    <IfModule mod_ruid2.c>
        RMode config
        RUidGid stacaravan stacaravan
        #RGroups apache access
        RGroups @none
    </IfModule>
    <IfModule mod_fcgid.c>
        SuexecUserGroup stacaravan stacaravan
    </IfModule>
</Directory>

<VirtualHost 5.9.88.25:80 >
RewriteEngine on
RewriteCond %{HTTP_HOST} ^stacaravanachterhoek\.nl
RewriteRule ^(.*)$ http://www.stacaravanachterhoek$1 [R=permanent,L]
Alias /media/ /home/stacaravan/stacaravan/media/
Alias /static/ /home/stacaravan/stacaravan/static/

WSGIDaemonProcess stacaravan user=stacaravan group=stacaravan threads=25
WSGIProcessGroup stacaravan
WSGIScriptAlias / /home/stacaravan/stacaravan/stacaravan/wsgi.py

<Directory /home/stacaravan/stacaravan/stacaravan>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
    ServerName www.stacaravanachterhoek.nl
    ServerAlias www.stacaravanachterhoek.nl stacaravanachterhoek.nl 
    ServerAdmin mymail
    DocumentRoot 
/home/stacaravan/domains/stacaravanachterhoek.nl/public_html
    UseCanonicalName OFF
    <IfModule !mod_ruid2.c>
        SuexecUserGroup stacaravan stacaravan
    </IfModule>
    <IfModule mod_ruid2.c>
        RMode config
        RUidGid stacaravan stacaravan
        #RGroups apache access
        RGroups @none
    </IfModule>
    CustomLog /var/log/httpd/domains/stacaravanachterhoek.nl.bytes bytes
    CustomLog /var/log/httpd/domains/stacaravanachterhoek.nl.log combined
    ErrorLog /var/log/httpd/domains/stacaravanachterhoek.nl.error.log
    <Directory /home/stacaravan/domains/stacaravanachterhoek.nl/public_html>
        AllowOverride AuthConfig FileInfo Indexes Limit 
Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
        Options -ExecCGI
        php_admin_flag engine ON
        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f mymail'
        php_admin_value mail.log /home/stacaravan/.php/php-mail.log
        php_admin_value open_basedir 
/home/stacaravan/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/
    </Directory>
</VirtualHost>

<VirtualHost 5.9.88.25:443 >
RewriteEngine on
RewriteCond %{HTTP_HOST} ^stacaravanachterhoek\.nl
RewriteRule ^(.*)$ http://www.stacaravanachterhoek$1 [R=permanent,L]
Alias /media/ /home/stacaravan/stacaravan/media/
Alias /static/ /home/stacaravan/stacaravan/static/
Alias /robots.txt /home/stacaravan/stacaravan/static/robots.txt

<Directory /home/stacaravan/stacaravan/stacaravan>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
    SSLEngine on
    SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
    SSLCACertificateFile /etc/httpd/conf/ssl.crt/server.ca
    ServerName www.stacaravanachterhoek.nl
    ServerAlias www.stacaravanachterhoek.nl stacaravanachterhoek.nl 
    ServerAdmin mymail
    DocumentRoot 
/home/stacaravan/domains/stacaravanachterhoek.nl/private_html
    UseCanonicalName OFF
    <IfModule !mod_ruid2.c>
        SuexecUserGroup stacaravan stacaravan
    </IfModule>
    <IfModule mod_ruid2.c>
        RMode config
        RUidGid stacaravan stacaravan
        #RGroups apache access
        RGroups @none
    </IfModule>
    CustomLog /var/log/httpd/domains/stacaravanachterhoek.nl.bytes bytes
    CustomLog /var/log/httpd/domains/stacaravanachterhoek.nl.log combined
    ErrorLog /var/log/httpd/domains/stacaravanachterhoek.nl.error.log
    <Directory 
/home/stacaravan/domains/stacaravanachterhoek.nl/private_html>
        AllowOverride AuthConfig FileInfo Indexes Limit 
Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
        Options -ExecCGI
        php_admin_flag engine ON
        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f mymail'
        php_admin_value mail.log /home/stacaravan/.php/php-mail.log
        php_admin_value open_basedir 
/home/stacaravan/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/
    </Directory>
</VirtualHost>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to