File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ The role will not modify this file if it exists.
4343Additionally you can define other virtual hosts in ` /etc/nginx/sites-enabled/ ` directory.
4444They will be loaded as well.
4545
46+ > ℹ️ You may want to disable Nginx default vhost on Debian based systems by removing the
47+ ` /etc/nginx/sites-enabled/default ` symlink.
48+
4649
4750Example Playbook
4851----------------
Original file line number Diff line number Diff line change 66 tasks :
77 - name : Test that nginx redirects to https
88 ansible.builtin.uri :
9- url : http://127.0.0.1 /
9+ url : http://{{ inventory_hostname }} /
1010 follow_redirects : none
1111 status_code : 301
1212
1313 - name : Test that nginx acts as proxy on https
1414 ansible.builtin.uri :
15- url : https://127.0.0.1 /
15+ url : https://{{ inventory_hostname }} /
1616 validate_certs : false
1717 follow_redirects : none
1818 status_code : 502
3030
3131 - name : Test extra configuration
3232 ansible.builtin.uri :
33- url : https://127.0.0.1 /test
33+ url : https://{{ inventory_hostname }} /test
3434 validate_certs : false
3535 follow_redirects : none
3636 status_code : 204
You can’t perform that action at this time.
0 commit comments