You cannot have multiple VirtualHost for the same ServerName and port.

Everything needs to go into the one VirtualHost if for same site.

So something like:

<VirtualHost *:80>
    ServerName cassio.citadin.me
    ServerAlias *.cassio.citadin.me
    DocumentRoot /var/www/html/cassio.citadin.me/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /home/ubuntu/projects/setlistmaker>
    Order allow,deny
    Allow from all
</Directory>

WSGIDaemonProcess exemplo processes=1 threads=4 user=ubuntu 
python-path=/home/ubuntu/projects/setlistmaker 
python-home:/home/ubuntu/virtualenvs/setlistmaker

WSGIScriptAlias /exemplo 
/home/ubuntu/projects/setlistmaker/setlistmaker/wsgi.py process-group=exemplo 
application-group=%{GLOBAL}

<Directory /home/ubuntu/projects/setlistmaker/setlistmaker>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

</VirtualHost>

Graham

> On 6 Jan 2016, at 10:21 AM, Cássio Nandi Citadin 
> <[email protected]> wrote:
> 
> Graham, thank you for reply.
> 
> I have my wordpress with this VirtualHost (which is my personal website)
> 
> <VirtualHost *:80>
>     ServerName cassio.citadin.me <http://cassio.citadin.me/>
>     ServerAlias *.cassio.citadin.me <http://cassio.citadin.me/>
>     DocumentRoot /var/www/html/cassio.citadin.me/public_html 
> <http://cassio.citadin.me/public_html>
>     ErrorLog ${APACHE_LOG_DIR}/error.log
>     CustomLog ${APACHE_LOG_DIR}/access.log combined
> </VirtualHost>
> 
> You are saying that if I have one VirtualHost with ServerName, all 
> VirtualHost will need to have ServerName directives?
> 
> terça-feira, 5 de Janeiro de 2016 às 19:58:38 UTC-2, Graham Dumpleton 
> escreveu:
> Your VirtualHost is missing a ServerName directive. If you have other 
> VirtualHost’s and are using name based virtual hosts properly in those, this 
> VirtualHost would never be used.
> 
> What other VirtualHost’s do you have?
> 
> Graham
> 
>> On 6 Jan 2016, at 8:04 AM, Cássio Nandi Citadin <cassionan...@ <>gmail.com 
>> <http://gmail.com/>> wrote:
>> 
>> Hi folks!
>> 
>> I am trying to run a Django app with WSGI on deamon mode on the last two 
>> days without success. Hope you can give me some help.
>> 
>> I have a Apache with some Wordpress and php sites running, and I want to run 
>> some python/Django sites in the same Apache.
>> 
>> WSGI embedded mode worked until I deploy the second site, so I am trying to 
>> follow the Deamon Mode Way to run sites on separated proccess.
>> 
>> I am trying to run this exemple on http://myserver/exemplo 
>> <http://myserver/exemplo>, but it's like WSGIScriptAlias /exemplo dont work.
>> 
>> Logs shows File does not exist: /var/www/html/exemplo
>> being /var/www/html the Apache user Home.
>> So WSGIDaemonProcess has the user=ubuntu, with home beeing /home/ubuntu, but 
>> even with this config Apache keeps trying to open something that not exists
>> 
>> 
>> This is the Apache VHost configuration: 
>> 
>> http://pastebin.com/x2uwS4Jh <http://pastebin.com/x2uwS4Jh>
>> 
>> This is the wsgi that Django generates:
>> 
>> http://pastebin.com/XZbvurBv <http://pastebin.com/XZbvurBv>
>> 
>> This is the error.log that Apache shows on restart:
>> 
>> http://pastebin.com/h8c35bsi <http://pastebin.com/h8c35bsi>
>> 
>> Sorry for the messed text, but I and very confuse with all this configs.
>> 
>> -- 
>> 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+u...@ <>googlegroups.com <http://googlegroups.com/>.
>> To post to this group, send email to mod...@ <>googlegroups.com 
>> <http://googlegroups.com/>.
>> 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] 
> <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