AIRAVATA-3697 Set lang and locale on WSGIDaemonProcess
This is so that the Django portal code can handle filenames with UTF8 characters.
diff --git a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
index 2c2f73f..0764c34 100644
--- a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
+++ b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
@@ -43,7 +43,7 @@
<VirtualHost *:{{ httpd_default_http_port }}>
ServerName {{ vhost_servername }}
-
+
## Redirect all http traffic to https
RewriteEngine On
RewriteCond %{HTTPS} off
@@ -99,7 +99,15 @@
{% endif %}
{% endfor %}
- WSGIDaemonProcess {{ vhost_servername }} display-name=%{GROUP} python-home={{ doc_root_dir }}/venv python-path={{ doc_root_dir }}/airavata-django-portal processes={{ django_wsgi_processes }} user={{ user }} group={{ group }}
+ WSGIDaemonProcess {{ vhost_servername }} \
+ display-name=%{GROUP} \
+ python-home={{ doc_root_dir }}/venv \
+ python-path={{ doc_root_dir }}/airavata-django-portal \
+ processes={{ django_wsgi_processes }} \
+ user={{ user }} \
+ group={{ group }} \
+ lang=en_US.UTF-8 \
+ locale=en_US.UTF-8
WSGIProcessGroup {{ vhost_servername }}
WSGIScriptAlias / {{ doc_root_dir }}/airavata-django-portal/django_airavata/wsgi.py