← Back to team overview

graphite-dev team mailing list archive

[Question #158422]: Sample VHost for mod_wsgi ?

 

New question #158422 on Graphite:
https://answers.launchpad.net/graphite/+question/158422

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


-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.