Only WSGIRestrictEmbedded needs to be outside of the VirtualHost. Leave 
everything else you may have inside of the VirtualHost.

> On 11 Sep 2020, at 8:17 am, Gordon Charles <[email protected]> wrote:
> 
> I've been trying to create a .conf file which would simultaneously support 
> Wordpress and Flask (I have some flask apps which run as part of an embedded 
> solution and would like for others to be able to drive the application in a 
> simulation mode and like the idea of having a site wide implementation via 
> flask for consistency.
> 
> I've been following the guidance found here:
> Graham Dumpleton Post 
> <http://blog.dscpl.com.au/2014/09/hosting-php-web-applications-in.html>
> and here:
> mod_wsgi docs <https://modwsgi.readthedocs.io/en/develop/index.html>
> 
> I'm running on Ubuntu 20.04.1 LTS
> Apache/2.4.41
> Python 3.8.2
> 
> When I include the suggested configuration described in the Graham Dumpleton 
> Post <http://blog.dscpl.com.au/2014/09/hosting-php-web-applications-in.html> 
> inside of the VirtualHost definition I get the following:
> WSGIRestrictEmbedded cannot occur within <VirtualHost> section
> Action 'restart' failed.
> 
> When I include the suggested configuration outside of the VirtualHost 
> definition it breaks wordpress.
> 
> Any guidance here would be appriciated.
> 
> 
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/ded196fd-0b21-44ba-b6d5-b91b194e196dn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/ded196fd-0b21-44ba-b6d5-b91b194e196dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/744D88C3-52A0-49FE-A9DA-F5C3DA955E43%40gmail.com.

Reply via email to