mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Add custom headers in vhost (moved from ssl helpers)
This commit is contained in:
@@ -107,11 +107,13 @@
|
||||
template: '_base'
|
||||
filename : 'first-test'
|
||||
override_try_files: '$uri $uri index.htm index.html'
|
||||
headers:
|
||||
'X-Frame-Options': 'deny'
|
||||
'X-ansible-default': '1'
|
||||
manage_local_content: false
|
||||
use_error_log: false
|
||||
more:
|
||||
- 'autoindex off;'
|
||||
- 'add_header X-ansible-default 1;'
|
||||
location:
|
||||
'/test':
|
||||
- 'return 403;'
|
||||
|
||||
Reference in New Issue
Block a user