diff options
author | Matthew Summers <matthew.summers@liquidustech.com> | 2010-05-17 15:45:52 -0500 |
---|---|---|
committer | Matthew Summers <matthew.summers@liquidustech.com> | 2010-05-17 15:45:52 -0500 |
commit | 3eabdf740778af932c44e1c5c26433dfb396de98 (patch) | |
tree | f00a4ad0799d0f4afcb4163b5191738776f024df | |
parent | limiting the display of mouse-over text to 50 chars, per robbat2's request (diff) | |
download | gentoo-ads-3eabdf740778af932c44e1c5c26433dfb396de98.tar.gz gentoo-ads-3eabdf740778af932c44e1c5c26433dfb396de98.tar.bz2 gentoo-ads-3eabdf740778af932c44e1c5c26433dfb396de98.zip |
apache vhost conf and wsgi examples
-rw-r--r-- | apache/__init__.py | 0 | ||||
-rw-r--r-- | apache/apache_gentoo-ads.conf | 13 | ||||
-rw-r--r-- | apache/gentoo_ads.wsgi | 12 |
3 files changed, 25 insertions, 0 deletions
diff --git a/apache/__init__.py b/apache/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/apache/__init__.py diff --git a/apache/apache_gentoo-ads.conf b/apache/apache_gentoo-ads.conf new file mode 100644 index 0000000..6c24143 --- /dev/null +++ b/apache/apache_gentoo-ads.conf @@ -0,0 +1,13 @@ +#Alias /media/ "/home/msummers/git_repos/gentoo-ads/media/" + +#<Directory "/home/msummers/git_repos/gentoo-ads/media"> +# Order allow,deny +# Allow from all +#</Directory> + +WSGIScriptAlias / "/home/msummers/git_repos/gentoo-ads/apache/gentoo_ads.wsgi" + +<Directory "/home/msummers/git_repos/gentoo-ads/apache"> + Order deny,allow + Allow from all +</Directory>
\ No newline at end of file diff --git a/apache/gentoo_ads.wsgi b/apache/gentoo_ads.wsgi new file mode 100644 index 0000000..d56ac85 --- /dev/null +++ b/apache/gentoo_ads.wsgi @@ -0,0 +1,12 @@ +import os, sys +from os.path import dirname as _ + +workspace = _(_(__file__)) +project = os.path.join(workspace, 'gentoo_ads') +sys.path.append(workspace) +sys.path.append(project) + +# Set up settings module +os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() |