Why do you say you are not in daemon mode?

I see only two potential things wrong with this.

You would not normally have 'myip' as argument to VirtualHost. You would have:

    <VirtualHost *:80>

Because you are using an IP, there is a possibility that VirtualHost is being 
ignored when doing name based virtual host matching.

The second issue, but perhaps just in the email, is different font characters 
show for 'myproject' in WSGIDaemonProcess and WSGIProcessGroup. I only mention 
this just in case it is a stupid Unicode issue and you have actually managed to 
use different Unicode characters for the name in each. Unlikely, but Unicode 
can technically do that.

What I would do to ensure you are using daemon mode, is to add outside of 
VirtualHost:

    WSGIRestrictEmbedded On

This will disable embedded mode and give an error response if things aren't 
properly delegating the application requests to a daemon process group. This 
can be handy to debug, and should always be set if only using daemon mode.

Graham

> On 13 Feb 2019, at 2:50 pm, 阿尼 <[email protected]> wrote:
> 
> Hello
> 
> I have set my configuration like following, but it seems I am not into the 
> deamon mode.
> did I miss something?
> <VirtualHost myip>
> ServerName myname
> CustomLog /var/log/httpd/myname-access.log common
> ErrorLog /var/log/httpd/myname-error.log
> 
> WSGIDaemonProcess myproject python-home=/path/to/myproject/.env
> WSGIProcessGroup  myproject 
> WSGIScriptAlias / '/path/to/myproject/myproject/wsgi.py'
> <Directory '/path/to/myproject/myproject'>
> <Files wsgi.py>
>     Require all granted
> </Files>
> </Directory>
> 
> Alias '/static' '/homepage/myproject/static-files'
> <Directory '/homepage/myproject/static-files'>
>     AllowOverride None
>     Require all granted
> </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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi 
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to