Wednesday, November 16, 2016

Re: setup virtualhost right way

If I put inside vistualhost the results are the same


Em quarta-feira, 16 de novembro de 2016 08:00:09 UTC-2, Antonis Christofides escreveu:

Also note that the WSGI* directives should probably go inside the <VirtualHost> block.

Antonis Christofides  http://djangodeployment.com
On 2016-11-16 11:11, Ricardo Prado wrote:
Hi!

After many google searchs and forum I can't get a real idea about virtualhost setup for django apps.
I'm using this setup above but my CPU Usage is 99% very high. Please someone can explain to me the right way setup vhost?

I'm using Linux Ubuntu 14.04




WSGIDaemonProcess framework python-path=/mnt/g/Python/osvaldo/framework/:/mnt/g/Python/osvaldo/framework/lib/python2.7/site-packages
WSGIProcessGroup framework
WSGIScriptAlias / /mnt/g/Python/osvaldo/framework/framework/wsgi.py


<VirtualHost *:80>
        ServerName 127.0.0.2
        ServerAlias ahora.local


    Alias /static /mnt/g/Python/osvaldo/framework/static
    Alias /media /mnt/g/Python/osvaldo/framework/media

    <Directory /mnt/g/Python/osvaldo/framework>
        <Files wsgi.py>
            Require all granted
        </Files>
    </Directory>


    <Directory /mnt/g/Python/osvaldo/framework/media/>
    Require all granted
    </Directory>

    <Directory /mnt/g/Python/osvaldo/framework/static/>
    Require all granted
    </Directory>

</VirtualHost>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/141a0037-4a6a-41a6-aea0-44828fb3fc8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b1b0e8df-ea14-4bb6-9da1-3d64f2da9f20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment