{{cookiecutter.project_slug}}/etc/apache2.4/{{cookiecutter.project_slug}}.conf
changeset 0 186ad038b0d9
child 49 31b1b24e105c
equal deleted inserted replaced
-1:000000000000 0:186ad038b0d9
       
     1 WSGIDaemonProcess {{ cookiecutter.project_slug }} user={{ cookiecutter.run_user }} group={{ cookiecutter.run_group }} processes=4 threads=4 display-name="{{ cookiecutter.project_name }}"
       
     2 
       
     3 <VirtualHost *:80>
       
     4 
       
     5 	ServerAdmin webmaster@localhost
       
     6 	ServerName {{ cookiecutter.virtual_hostname }}
       
     7 
       
     8 	DocumentRoot $((INSTALL))/var/htdocs
       
     9 	ErrorLog {{ cookiecutter.logs_directory }}/{{ cookiecutter.project_slug }}-error.log
       
    10 
       
    11 	LogLevel warn
       
    12 
       
    13 	CustomLog {{ cookiecutter.logs_directory }}/{{ cookiecutter.project_slug }}-access.log combined
       
    14 
       
    15 	WSGIScriptAlias		/	$((INSTALL))/parts/wsgi/wsgi
       
    16 	WSGIImportScript		$((INSTALL))/parts/wsgi/wsgi process-group={{ cookiecutter.project_slug }} application-group=%{GLOBAL}
       
    17 
       
    18 	<Location />
       
    19 		Require all granted
       
    20 
       
    21 		WSGIProcessGroup		{{ cookiecutter.project_slug }}
       
    22 		WSGIApplicationGroup	%{GLOBAL}
       
    23 	</Location>
       
    24 
       
    25 	<Directory $((INSTALL))/parts/wsgi>
       
    26 		Require all granted
       
    27 	</Directory>
       
    28 
       
    29 </VirtualHost>