> On 12 May 2016, at 4:56 PM, Jaqen Nki <[email protected]> wrote:
> 
> EDIT:  my bad, had to create wsgi.load file then enable it.  sudo a2enmod 
> wsgi.  Now all my conf files are set up right I think.  Just to be clear, is 
> this where I put the line     
> 
>                   WSGIPythonHome /var/www/site1/FlaskApp/FlaskApp/venv

The WSGIPythonHome directive should be placed in the wsgi.load file after the 
LoadModule line.

For best results also add into end of that file:

WSGIRestrictEmbedded On

> sudo nano /etc/apache2/sites-available/site1.conf        
> 
> <VirtualHost *:80>
>                 ServerName 192.168.1.102
>                 ServerAlias site1.me
>                 ServerAdmin [email protected] <mailto:[email protected]>

And again for best results, also add here:

WSGIDaemonProcess flask
WSGIProcessGroup flask
WSGIApplicationGroup %{GLOBAL}

>                 WSGIScriptAlias / /var/www/site1/FlaskApp/flaskapp.wsgi
>                 WSGIPythonHome /var/www/site1/FlaskApp/FlaskApp/venv
> 
>                 <Directory /var/www/site1/FlaskApp/FlaskApp/>
>                         Order allow,deny
>                         Allow from all
>                 </Directory>
>                 Alias /static /var/www/site1/FlaskApp/FlaskApp/static
>                 <Directory /var/www/site1/FlaskApp/FlaskApp/static/>
>                         Order allow,deny
>                         Allow from all
>                 </Directory>
>                 ErrorLog /var/www/site1/logs/error.log
>                 LogLevel warn
>                 CustomLog /var/www/site1/logs/access.log combined
> </VirtualHost>
> 
> 
> With this apache wont run.

For what the daemon process directives are about read:

http://blog.dscpl.com.au/2012/10/why-are-you-using-embedded-mode-of.html 
<http://blog.dscpl.com.au/2012/10/why-are-you-using-embedded-mode-of.html>

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

Reply via email to