Sample VHost for mod_wsgi ?

Asked by Henri Gomez

I setup Graphite 0.9.8 on Ubuntu 10.10 box using mod_python using a sample vhost conf :

<VirtualHost *:80>
        ServerName graphite.mycorp.com
        DocumentRoot "/opt/graphite/webapp"
        ErrorLog /var/log/apache2/graphite.mycorp.com-error.log
        CustomLog /var/log/apache2/graphite.mycorp.com-access.log common

        <Location "/">
                SetHandler python-program
                PythonPath "['/opt/graphite/webapp'] + sys.path"
                PythonHandler django.core.handlers.modpython
                SetEnv DJANGO_SETTINGS_MODULE graphite.settings
                PythonDebug Off
                PythonAutoReload Off
        </Location>

        <Location "/content/">
                SetHandler None
        </Location>

        <Location "/media/">
                SetHandler None
        </Location>

        # NOTE: In order for the django admin site media to work you
        # must change @DJANGO_ROOT@ to be the path to your django
        # installation, which is probably something like:
        # /usr/lib/python2.6/site-packages/django
        # Alias /media/ "/usr/lib/pymodules/python2.7/django/contrib/admin/media"
        Alias /media/ "/usr/share/pyshared/django/contrib/admin/media"

</VirtualHost>

Did there is a sample Vhost available for wsgi, since I read it's the recommanded way now.

Thanks for your help

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nicholas Leskiw (nleskiw) said :
#1

Can you help with this problem?

Provide an answer of your own, or ask Henri Gomez for more information if necessary.

To post a message you must log in.