On 01/12/2014, at 9:01 PM, r van dam <[email protected]> wrote:

> I have set this option in the global httpd.conf;
> 
> WSGISocketPrefix var/run/apache

The argument should be an absolute path, not relative.

The only reason it works at all is because the current working directory of 
Apache when it runs is the root directory of '/'.

I wouldn't rule out that things would break is some misbehaving Apache module 
(or PHP), changed the working directory of the process.

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

Since you have a rewrite rule here to redirect everything over to the http 
(port 80) virtual host, seems like everything below is redundant.

> 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>

Anyway, are you saying you are still getting the error about unknown WSGI 
daemon process group at this point?

What happens if instead of using:

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

you use:

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

Graham


-- 
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