Browse Source

adapt the exemplary apache vhost configs for Django 1.4

Natenom/support-murmur-13-1446181288462
Michael Ziegler 13 years ago
parent
commit
0869bce045
  1. 9
      etc/apache2/dedicated_vhost.conf
  2. 9
      etc/apache2/shared_vhost.conf

9
etc/apache2/dedicated_vhost.conf

@ -8,17 +8,10 @@
ServerName example.com ServerName example.com
ServerAlias www.example.com ServerAlias www.example.com
Alias /static/admin/ /usr/share/pyshared/django/contrib/admin/static/admin/
Alias /static/ /srv/mumble-django/htdocs/ Alias /static/ /srv/mumble-django/htdocs/
Alias /mumble/media/ /srv/mumble-django/pyweb/mumble/media/ Alias /mumble/media/ /srv/mumble-django/pyweb/mumble/media/
# for Debian squeeze(unstable)
Alias /media/ /usr/share/pyshared/django/contrib/admin/media/
# if installed using easy_install
#Alias /media/ /usr/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/contrib/admin/media/
# if self-installed using setup.py
#Alias /media/ /usr/lib/python2.4/site-packages/django/contrib/admin/media/
#Alias /media/ /usr/lib/python2.5/site-packages/django/contrib/admin/media/
WSGIScriptAlias / /srv/mumble-django/mumble-django.wsgi WSGIScriptAlias / /srv/mumble-django/mumble-django.wsgi
WSGIDaemonProcess mumble-django threads=25 WSGIDaemonProcess mumble-django threads=25
WSGIProcessGroup mumble-django WSGIProcessGroup mumble-django

9
etc/apache2/shared_vhost.conf

@ -17,17 +17,10 @@
# -----------8<--------- cut here # -----------8<--------- cut here
Alias /mumble-django/static/admin/ /usr/share/pyshared/django/contrib/admin/static/admin/
Alias /mumble-django/static/ /srv/mumble-django/htdocs/ Alias /mumble-django/static/ /srv/mumble-django/htdocs/
Alias /mumble-django/mumble/media/ /srv/mumble-django/pyweb/mumble/media/ Alias /mumble-django/mumble/media/ /srv/mumble-django/pyweb/mumble/media/
# for Debian squeeze(unstable)
Alias /mumble-django/media/ /usr/share/pyshared/django/contrib/admin/media/
# if installed using easy_install
#Alias /media/ /usr/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/contrib/admin/media/
# if self-installed using setup.py
#Alias /mumble-django/media/ /usr/lib/python2.4/site-packages/django/contrib/admin/media/
#Alias /mumble-django/media/ /usr/lib/python2.5/site-packages/django/contrib/admin/media/
WSGIScriptAlias /mumble-django /srv/mumble-django/mumble-django.wsgi WSGIScriptAlias /mumble-django /srv/mumble-django/mumble-django.wsgi
WSGIDaemonProcess mumble-django threads=25 WSGIDaemonProcess mumble-django threads=25
WSGIProcessGroup mumble-django WSGIProcessGroup mumble-django

Loading…
Cancel
Save