Disable HTTP 500 error pages on web Uberspaces
This commit is contained in:
@@ -118,3 +118,12 @@
|
||||
- name: Enable PHP error log
|
||||
command: uberspace web log php_error enable
|
||||
when: "'is enabled' not in uberspace_log_php_error_status_result.stdout"
|
||||
|
||||
- name: Check if the 500 error page is disabled
|
||||
command: uberspace web errorpage 500 status
|
||||
register: uberspace_error_page_500_status_result
|
||||
changed_when: no
|
||||
|
||||
- name: Disable 500 error page
|
||||
command: uberspace web errorpage 500 disable
|
||||
when: "'is disabled' not in uberspace_error_page_500_status_result.stdout"
|
||||
|
||||
Reference in New Issue
Block a user