summaryrefslogtreecommitdiffstats
path: root/misc/apache
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2010-10-19 12:00:34 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2010-10-19 12:00:58 -0500
commit9a981769c88e8478693688087eb0f4b99d0188a6 (patch)
tree2c2d5b03eda78f7c6c47dafd4613ffb8cf6e7ece /misc/apache
parentd80879415ba4f2b8697d9e2809f3b9e4f0cb159c (diff)
downloadbcfg2-9a981769c88e8478693688087eb0f4b99d0188a6.tar.gz
bcfg2-9a981769c88e8478693688087eb0f4b99d0188a6.tar.bz2
bcfg2-9a981769c88e8478693688087eb0f4b99d0188a6.zip
web_reports: updated spec to build web reports rpm
Diffstat (limited to 'misc/apache')
-rw-r--r--misc/apache/bcfg2.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/misc/apache/bcfg2.conf b/misc/apache/bcfg2.conf
new file mode 100644
index 000000000..2963091ec
--- /dev/null
+++ b/misc/apache/bcfg2.conf
@@ -0,0 +1,28 @@
+LoadModule wsgi_module modules/mod_wsgi.so
+
+<IfModule mod_wsgi.c>
+ #
+ # If the root is changed update the static content alias as well
+ #
+ WSGIScriptAlias /bcfg2 "/usr/lib/python2.4/site-packages/Bcfg2/Server/Reports/reports.wsgi"
+
+ WSGISocketPrefix run
+ WSGIDaemonProcess Bcfg2.Server.Reports processes=1 threads=10
+ WSGIProcessGroup Bcfg2.Server.Reports
+
+ #
+ # Manually set this to override the static content
+ #
+ #SetEnv bcfg2.media_url /bcfg2/site_media/
+
+ #
+ # This should have the same prefix as WSGIScriptAlias
+ #
+ Alias "/bcfg2/site_media/" "/usr/share/bcfg2/site_media/"
+ <Directory "/usr/share/bcfg2/site_media/">
+ Options None
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+</IfModule>