Enabling public sites for GitHub Pages
If private mode is enabled on your enterprise, the public cannot access GitHub Pages sites hosted by your enterprise unless you enable public sites.
Warning: If you enable public sites for GitHub Pages, every site in every repository on your enterprise will be accessible to the public.
- From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page.
- In the left sidebar, click Management Console.
- In the left sidebar, click Pages.
- Select Public Pages.
- Under the left sidebar, click Save settings.
- Wait for the configuration run to complete.
Disabling GitHub Pages for your enterprise
If subdomain isolation is disabled for your enterprise, you should also disable GitHub Pages to protect yourself from potential security vulnerabilities. For more information, see "Enabling subdomain isolation."
- From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page.
- In the left sidebar, click Management Console.
- In the left sidebar, click Pages.
- Unselect Enable Pages.
- Under the left sidebar, click Save settings.
- Wait for the configuration run to complete.