| title | Configuring GitHub Pages for your enterprise | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| intro | You can enable or disable {% data variables.product.prodname_pages %} for your enterprise and choose whether to make sites publicly accessible. | |||||||||
| redirect_from |
|
|||||||||
| versions |
|
|||||||||
| shortTitle | Configure GitHub Pages | |||||||||
| contentType | how-tos | |||||||||
| category |
|
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 %}
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 %}
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 %}