{{cookiecutter.project_slug}}/etc/apache2.4/{{cookiecutter.project_slug}}.conf
changeset 0 186ad038b0d9
child 49 31b1b24e105c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/{{cookiecutter.project_slug}}/etc/apache2.4/{{cookiecutter.project_slug}}.conf	Wed Jun 07 15:43:34 2017 +0200
@@ -0,0 +1,29 @@
+WSGIDaemonProcess {{ cookiecutter.project_slug }} user={{ cookiecutter.run_user }} group={{ cookiecutter.run_group }} processes=4 threads=4 display-name="{{ cookiecutter.project_name }}"
+
+<VirtualHost *:80>
+
+	ServerAdmin webmaster@localhost
+	ServerName {{ cookiecutter.virtual_hostname }}
+
+	DocumentRoot $((INSTALL))/var/htdocs
+	ErrorLog {{ cookiecutter.logs_directory }}/{{ cookiecutter.project_slug }}-error.log
+
+	LogLevel warn
+
+	CustomLog {{ cookiecutter.logs_directory }}/{{ cookiecutter.project_slug }}-access.log combined
+
+	WSGIScriptAlias		/	$((INSTALL))/parts/wsgi/wsgi
+	WSGIImportScript		$((INSTALL))/parts/wsgi/wsgi process-group={{ cookiecutter.project_slug }} application-group=%{GLOBAL}
+
+	<Location />
+		Require all granted
+
+		WSGIProcessGroup		{{ cookiecutter.project_slug }}
+		WSGIApplicationGroup	%{GLOBAL}
+	</Location>
+
+	<Directory $((INSTALL))/parts/wsgi>
+		Require all granted
+	</Directory>
+
+</VirtualHost>