When you are running both 80 and 443 VirtualHost's, only include the 
WSGIDaemonProcess directive in the first of the two which would be read by 
Apache. The second one, because it uses the same ServerName, can reference the 
daemon process group from the first VirtualHost.

If you do not do this, the name of the daemon process group needs to be 
different in each VirtualHost because it has to be globally unique. You don't 
want this though in this case though since whether is port 80 or 443, is same 
site, so no point running more than one instance of your application as takes 
more memory.

Other option is to move the WSGIDaemonProcess outside of all VirtualHost's so 
is global, then any VirtualHost can reference it. Even with 80/443, still 
better to have it once in the first VirtualHost and use reference it by name 
from second.

Graham

> On 3 Jan 2017, at 9:28 PM, Jaqen Nki <[email protected]> wrote:
> 
> one thing real quick, I am running let's encrypt from source this time, last 
> crack at it, get this error in the prompt:
> 
> AH00526: Syntax error on line 4 of /etc/apache2/sites-enabled/sld.conf:
> Name duplicates previous WSGI daemon definition.
> 
> <VirtualHost *:80>
>                 ServerName skylinedev.net
>                 ServerAlias www.skylinedev.net
>                 WSGIDaemonProcess sld 
> python-home=/var/www/SkylineDevelopment/FlaskApp/FlaskApp/venv                
>      #  ???
>                 WSGIProcessGroup sld
>                 WSGIApplicationGroup %{GLOBAL}
>                 WSGIScriptAlias / 
> /var/www/SkylineDevelopment/FlaskApp/flaskapp.wsgi
>                 <Directory /var/www/SkylineDevelopment/FlaskApp/>
>                         Order allow,deny
>                         Allow from all
>                 </Directory>
>                 Alias /static 
> /var/www/SkylineDevelopment/FlaskApp/FlaskApp/static
>                 <Directory 
> /var/www/SkylineDevelopment/FlaskApp/FlaskApp/static/>
>                         Order allow,deny
>                         Allow from all
>                 </Directory>
>                 ErrorLog /var/www/SkylineDevelopment/logs/error.log
>                 LogLevel warn
>                 CustomLog /var/www/SkylineDevelopment/logs/access.log combined
> </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