3.5 KiB
title, intro, redirect_from, versions, type, topics, shortTitle
| title | intro | redirect_from | versions | type | topics | shortTitle | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Configuring GitHub Pages for your enterprise | You can enable or disable {% data variables.product.prodname_pages %} for your enterprise{% ifversion ghes %} and choose whether to make sites publicly accessible{% endif %}. |
|
|
how_to |
|
Configure GitHub Pages |
Enabling public sites for {% data variables.product.prodname_pages %}
If private mode is enabled on your enterprise, the public cannot access {% data variables.product.prodname_pages %} sites hosted by your enterprise unless you enable public sites.
Warning
If you enable public sites for {% data variables.product.prodname_pages %}, every site in every repository on your enterprise will be accessible to the public.
{% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %} {% data reusables.enterprise_management_console.pages-tab %}
- Select Public Pages. {% data reusables.enterprise_management_console.save-settings %}
Disabling {% data variables.product.prodname_pages %} for your enterprise
If subdomain isolation is disabled for your enterprise, you should also disable {% data variables.product.prodname_pages %} to protect yourself from potential security vulnerabilities. For more information, see AUTOTITLE.
{% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %} {% data reusables.enterprise_management_console.pages-tab %}
- Deselect Enable Pages. {% data reusables.enterprise_management_console.save-settings %}
Configuring {% data variables.product.prodname_pages %} response headers for your enterprise
You can add or override response headers for {% data variables.product.prodname_pages %} sites hosted by {% data variables.location.product_location %}.
Warning
Ensure that your response headers are properly configured before saving. Improper configurations may negatively impact the security of {% data variables.location.product_location %}.
{% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.management-console %} {% data reusables.enterprise_management_console.pages-tab %}
- Under "Http Header Name," type the header name. The length of header name should less than 128 characters.
- Under "Http Header Value," type the header value. The length of header value should less than 300 characters.
- Click Add headers. {% data reusables.enterprise_management_console.save-settings %}