Skip to content

Commit 35a17dc

Browse files
YiMystygithub-actionsvgrllecoursen
authored
Add pages configuration header document (github#26163)
Co-authored-by: github-actions <[email protected]> Co-authored-by: Vanessa <[email protected]> Co-authored-by: Laura Coursen <[email protected]>
1 parent e8e4b1e commit 35a17dc

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed
79.4 KB
Loading

content/admin/configuration/configuring-your-enterprise/configuring-github-pages-for-your-enterprise.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ If subdomain isolation is disabled for your enterprise, you should also disable
4545
{% data reusables.enterprise_site_admin_settings.access-settings %}
4646
{% data reusables.enterprise_site_admin_settings.management-console %}
4747
{% data reusables.enterprise_management_console.pages-tab %}
48-
4. Unselect **Enable Pages**.
48+
1. Unselect **Enable Pages**.
4949
![Checkbox to disable {% data variables.product.prodname_pages %}](/assets/images/enterprise/management-console/pages-select-button.png)
5050
{% data reusables.enterprise_management_console.save-settings %}
5151

@@ -56,12 +56,35 @@ If subdomain isolation is disabled for your enterprise, you should also disable
5656
{% data reusables.enterprise-accounts.access-enterprise %}
5757
{% data reusables.enterprise-accounts.policies-tab %}
5858
{% data reusables.enterprise-accounts.pages-tab %}
59-
5. Under "Pages policies", deselect **Enable {% data variables.product.prodname_pages %}**.
59+
1. Under "Pages policies", deselect **Enable {% data variables.product.prodname_pages %}**.
6060
![Checkbox to disable {% data variables.product.prodname_pages %}](/assets/images/enterprise/business-accounts/enable-github-pages-checkbox.png)
6161
{% data reusables.enterprise-accounts.pages-policies-save %}
6262

6363
{% endif %}
6464

65+
{% ifversion ghes > 3.4 %}
66+
67+
## Configuring {% data variables.product.prodname_pages %} response headers for your enterprise
68+
69+
You can add or override response headers for {% data variables.product.prodname_pages %} sites hosted by {% data variables.product.product_location %}.
70+
71+
{% warning %}
72+
73+
**Warning:** Ensure that your response headers are properly configured before saving. Improper configurations may negatively impact the security of {% data variables.product.product_location %}.
74+
75+
{% endwarning %}
76+
77+
{% data reusables.enterprise_site_admin_settings.access-settings %}
78+
{% data reusables.enterprise_site_admin_settings.management-console %}
79+
{% data reusables.enterprise_management_console.pages-tab %}
80+
1. Type the headers settings, then click **Add headers**.
81+
- In the **Http Header Name** field, type the header name. The length of header name should less than 128 characters.
82+
- In the **Http Header Value** field, type the header value. The length of header value should less than 300 characters.
83+
![The {% data variables.product.prodname_pages %} response header name and value fields in the {% data variables.enterprise.management_console %}](/assets/images/enterprise/management-console/pages-override-header-section.png)
84+
{% data reusables.enterprise_management_console.save-settings %}
85+
86+
{% endif %}
87+
6588
{% ifversion ghes %}
6689
## Further reading
6790

0 commit comments

Comments
 (0)