You are possibly including that file more than once. Make sure not including it 
by explicit name and by wildcard.

The name given by first argument to WSGIDaemonProcess needs to be unique so 
also make sure don’t have another WSGIDaemonProcess directive using same value.

Graham

> On 8 Oct 2018, at 18:27, [email protected] wrote:
> 
> Running Apache/2.2.31 on alpine linux (docker) with python 2.7.14 and 
> compiled mod_wsgi 3.4 via google code archive here  
> 
> I've been attempting to set up httpd/wsgi/django and I've been running into 
> the error "Name duplicates previous WSGI daemon definition" when I start 
> httpd.  
> 
> The error is pointing to line containing `WSGIDaemonProcess app_port_80 
> processes=6 threads=50 display-name=%{GROUP}`
> 
> Here is the relevant conf file I'm including...
> 
> LoadModule wsgi_module modules/mod_wsgi.so
> 
> <VirtualHost _default_:80>
> 
>   # to make serving of font files work for firefox and IE
>   #
>   <FilesMatch "\.(ttf|otf|eot|woff|svg)$">
>   <IfModule mod_headers.c>
>   Header set Access-Control-Allow-Origin "*"
>   </IfModule>
>   </FilesMatch>
> 
>   <Directory "/app/wsgi/">
>   Order allow,deny
>   Allow from all
>   </Directory>
>   <Directory "/app/htdocs/">
>   Order allow,deny
>   Allow from all
>   </Directory>
> 
>   ErrorLog "logs/wsgi_errors"
> 
>   WSGIDaemonProcess app_port_80 processes=6 threads=50 display-name=%{GROUP}
>   WSGIProcessGroup app_port_80
>   WSGIScriptAlias / /app/wsgi/app.wsgi
>   AliasMatch ^/static/((?!/?store_images).*)$ "/app/static/$1$2"
> </VirtualHost>
> 
> I have no other VirtualHost blocks and the base httpd.conf does not contain 
> any reference to the app_port_80.  If I modify app_port_80 to anything else I 
> get the same error. 
> 
> The output of apachectl -D DUMP_VHOSTS contains the following...
> 
> httpd: Could not reliably determine the server's fully qualified domain name, 
> using 172.17.0.2 for ServerName
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> _default_:80           172.17.0.2 (/usr/local/apache2/conf/frontweb.conf:10)
> Syntax OK
> 
> One thing I experimented with was commenting out the offending line. When I 
> do so httpd does start successfully & serve my files however I'm concerned 
> that doing so leaves my application in a non-prod ready state. Any thoughts?
> 
> Thanks in advance
> -- 
> 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.

-- 
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