*'myip'* is just a thing to substitute the real IP address I used, did not 
think of using a star: *. lol
and *'myproject'* is my fault either, it is different Unicode characters 
but only in this post.

I said that I am not in daemon mode is because I followed the document 
<https://modwsgi.readthedocs.io/en/develop/user-guides/reloading-source-code.html#embedded-mode-vs-daemon-mode>
  
to add the code in my wsgi.py:
if not os.environ.get('mod_wsgi.process_group'):
  output = 'EMBEDDED MODE'
else:
  output = 'DAEMON MODE'


It prints out *'EMBEDDED MODE'* and I do need to reload Apache everytime I 
changed my source code.
Even if I add * WSGIRestrictEmbedded On, *it still can work but still 
prints out *'EMBEDDED MODE'*.

I am hosting other PHP applications at the same Apache Server, not knowing 
if it concerns. 


阿尼於 2019年2月13日星期三 UTC+8上午11時51分26秒寫道:
>
> 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 modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to