- Fix RedisCache driver to handle MGET failures gracefully with fallback - Add comprehensive discovery context comparison debug tools - Identify root cause: WEB context discovery missing 166 items vs CLI - WEB context missing RequestFactory class entirely (52 vs 69 commands) - Improved exception handling with detailed binding diagnostics
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
---
|
|
# Virtual Hosts Configuration for Nginx
|
|
|
|
- name: Create virtual host configuration
|
|
template:
|
|
src: vhost.conf.j2
|
|
dest: "{{ nginx_sites_available_path }}/{{ domain_name }}"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
notify: restart nginx
|
|
tags:
|
|
- nginx
|
|
- vhosts
|
|
|
|
- name: Enable virtual host
|
|
file:
|
|
src: "{{ nginx_sites_available_path }}/{{ domain_name }}"
|
|
dest: "{{ nginx_sites_enabled_path }}/{{ domain_name }}"
|
|
state: link
|
|
notify: restart nginx
|
|
tags:
|
|
- nginx
|
|
- vhosts
|
|
|
|
- name: Create HTTP to HTTPS redirect configuration
|
|
template:
|
|
src: redirect-vhost.conf.j2
|
|
dest: "{{ nginx_sites_available_path }}/{{ domain_name }}-redirect"
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
when: ssl_provider is defined and environment != 'development'
|
|
notify: restart nginx
|
|
tags:
|
|
- nginx
|
|
- ssl
|
|
- redirect
|
|
|
|
- name: Enable HTTP to HTTPS redirect
|
|
file:
|
|
src: "{{ nginx_sites_available_path }}/{{ domain_name }}-redirect"
|
|
dest: "{{ nginx_sites_enabled_path }}/{{ domain_name }}-redirect"
|
|
state: link
|
|
when: ssl_provider is defined and environment != 'development'
|
|
notify: restart nginx
|
|
tags:
|
|
- nginx
|
|
- ssl
|
|
- redirect |