Ticket #18036: 18036-1.diff

File 18036-1.diff, 1.5 KB (added by claudep, 3 years ago)

Update geodjango deployment docs

  • docs/ref/contrib/gis/deployment.txt

    diff --git a/docs/ref/contrib/gis/deployment.txt b/docs/ref/contrib/gis/deployment.txt
    index d98fc51..fa232ca 100644
    a b way to deploy Django applications with Apache. 
    1818As long as ``mod_wsgi`` is configured correctly, it does not
    1919matter whether the version of Apache is prefork or worker.
    2020
    21 .. note::
    22 
    23     The ``Alias`` and ``Directory`` configurations in the examples
    24     below use an example path to a system-wide installation folder of Django.
    25     Substitute in an appropriate location, if necessary, as it may be
    26     different than the path on your system.
    27 
    2821``mod_wsgi``
    2922------------
    3023
    3124Example::
    3225
    3326    <VirtualHost *:80>
    34       WSGIDaemonProcess geodjango user=geo group=geo processes=5 threads=1
    35       WSGIProcessGroup geodjango
    36       WSGIScriptAlias / /home/geo/geodjango/world.wsgi
     27      Alias /static/ /path/to/geodjango_site/static/
    3728
    38       Alias /media/ "/usr/lib/python2.6/site-packages/django/contrib/admin/media/"
    39       <Directory "/usr/lib/python2.6/site-packages/django/contrib/admin/media/">
    40         Order allow,deny
    41         Options Indexes
     29      <Directory /path/to/geodjango_site/static>
     30        Order deny,allow
    4231        Allow from all
    43         IndexOptions FancyIndexing
    4432      </Directory>
    4533
     34      WSGIDaemonProcess geodjango user=geo group=geo processes=5 threads=1
     35      WSGIProcessGroup geodjango
     36      WSGIScriptAlias / /path/to/geodjango_site/mysite/wsgi.py
     37
    4638    </VirtualHost>
    4739
    4840.. warning::
Back to Top