retrace: always use correct path in hub.wsgi
This commit is contained in:
parent
679ab41ee8
commit
d9a359e446
3 changed files with 9 additions and 12 deletions
|
@ -1,14 +1,6 @@
|
|||
|
||||
# check web functionality
|
||||
#
|
||||
- set_fact:
|
||||
url_suffix: ""
|
||||
when: faf_web_on_root
|
||||
|
||||
- set_fact:
|
||||
url_suffix: "/faf"
|
||||
when: not faf_web_on_root
|
||||
|
||||
- set_fact:
|
||||
main_url: "https://{{ ansible_default_ipv4.address }}{{ url_suffix }}"
|
||||
problems_url: "https://{{ ansible_default_ipv4.address }}{{ url_suffix }}/problems/"
|
||||
|
|
|
@ -16,11 +16,16 @@
|
|||
notify:
|
||||
- restart httpd
|
||||
|
||||
# faf installs this file by itself if faf_web_on_root
|
||||
# is disabled and is available under <hosts>/faf
|
||||
- set_fact:
|
||||
url_suffix: ""
|
||||
when: faf_web_on_root
|
||||
|
||||
- set_fact:
|
||||
url_suffix: "/faf"
|
||||
when: not faf_web_on_root
|
||||
|
||||
- name: put webfaf on root (/) if configured
|
||||
template: src=etc-httpd-conf.d-faf-web.conf.j2
|
||||
dest=/etc/httpd/conf.d/faf-web.conf
|
||||
when: faf_web_on_root
|
||||
notify:
|
||||
- restart httpd
|
||||
|
|
|
@ -10,7 +10,7 @@ WSGIDaemonProcess faf user=faf group=faf processes=3 threads=5
|
|||
{% set python = 'python2.7' %}
|
||||
{% endif %}
|
||||
|
||||
WSGIScriptAlias / /usr/lib/{{ python }}/site-packages/webfaf/hub.wsgi process-group=faf application-group=%{GLOBAL}
|
||||
WSGIScriptAlias {{ url_suffix }} /usr/lib/{{ python }}/site-packages/webfaf/hub.wsgi process-group=faf application-group=%{GLOBAL}
|
||||
|
||||
<Location />
|
||||
<IfModule mod_authz_core.c>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue