[python-django-horizon] add example config to enable logging to separate files (rhbz#826298)
Matthias Runge
mrunge at fedoraproject.org
Fri Dec 14 11:50:02 UTC 2012
commit e4ae833a0279dbd9c27e0c16132e72f3b402d69e
Author: Matthias Runge <mrunge at redhat.com>
Date: Fri Dec 14 12:49:21 2012 +0100
add example config to enable logging to separate files (rhbz#826298)
openstack-dashboard-httpd-logging.conf | 32 ++++++++++++++++++++++++++++++++
python-django-horizon.spec | 20 +++++++++++---------
2 files changed, 43 insertions(+), 9 deletions(-)
---
diff --git a/openstack-dashboard-httpd-logging.conf b/openstack-dashboard-httpd-logging.conf
new file mode 100644
index 0000000..5292b9e
--- /dev/null
+++ b/openstack-dashboard-httpd-logging.conf
@@ -0,0 +1,32 @@
+# if you want logging to a separate file, please update your config
+# according to the last 4 lines in this snippet, and also take care
+# to introduce a <VirtualHost > directive.
+#
+
+WSGISocketPrefix run/wsgi
+
+<VirtualHost *:80>
+ WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
+ Alias /static /usr/share/openstack-dashboard/static
+
+ WSGIDaemonProcess dashboard
+ WSGIProcessGroup dashboard
+
+ #DocumentRoot %HORIZON_DIR%/.blackhole/
+
+ <Directory />
+ Options FollowSymLinks
+ AllowOverride None
+ </Directory>
+
+ <Directory /usr/share/openstack-dashboard/>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride None
+ Order allow,deny
+ allow from all
+ </Directory>
+
+ ErrorLog logs/openstack_dashboard_error.log
+ LogLevel warn
+ CustomLog logs/openstack_dashboard_access.log combined
+</VirtualHost>
diff --git a/python-django-horizon.spec b/python-django-horizon.spec
index 03a6ac0..84edcd7 100644
--- a/python-django-horizon.spec
+++ b/python-django-horizon.spec
@@ -1,6 +1,6 @@
Name: python-django-horizon
Version: 2013.1
-Release: 0.1.g1%{?dist}
+Release: 0.2.g1%{?dist}
Summary: Django application for talking to Openstack
Group: Development/Libraries
@@ -15,6 +15,9 @@ Source2: openstack-dashboard-httpd-2.4.conf
# offline compressed css, js
Source3: python-django-horizon-compressed-css.tar.gz
+# demo config for separate logging
+Source4: openstack-dashboard-httpd-logging.conf
+
#
# patches_base=grizzly-1
#
@@ -115,13 +118,9 @@ Documentation for the Django Horizon application for talking with Openstack
%patch0003 -p1
# remove unnecessary .po files
find . -name "django*.po" -exec rm -f '{}' \;
-# patch settings
-# %patch0 -p1
-# disable debug also in local_settings.py
-
-# correct compressed output
-# move dashboard login/logout to /dashboard
+# drop config snippet
+cp -p %{SOURCE4} .
%build
%{__python} setup.py build
@@ -194,8 +193,8 @@ cp -a horizon/static/* %{buildroot}%{_datadir}/openstack-dashboard/static
cd %{buildroot}%{_datadir}/openstack-dashboard
tar xzf %{SOURCE3}
-
%files -f horizon.lang
+%doc LICENSE README.rst openstack-dashboard-httpd-logging.conf
%dir %{python_sitelib}/horizon
%{python_sitelib}/horizon/*.py*
%{python_sitelib}/horizon/browsers
@@ -238,9 +237,12 @@ tar xzf %{SOURCE3}
%config(noreplace) %attr(0640, root, apache) %{_sysconfdir}/openstack-dashboard/local_settings
%files doc
-%doc html
+%doc html
%changelog
+* Fri Dec 14 2012 Matthias Runge <mrunge at redhat.com> - 2013.1-0.2.g1
+- add config example snippet to enable logging to separate files
+
* Thu Nov 29 2012 Matthias Runge <mrunge at redhat.com> - 2013.1-0.1.g1
- update to grizzly-1 milestone
More information about the scm-commits
mailing list