Configuring GitHub Pages for your enterprise

You can enable or disable GitHub Pages for your enterprise and choose whether to make sites publicly accessible.

In this article

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.

  1. From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page.
    Rocketship icon for accessing site admin settings
  2. In the left sidebar, click Management Console.
    Management Console tab in the left sidebar
  3. In the left sidebar, click Pages.
    Pages sidebar
  4. Select Public Pages.
    Checkbox to enable Public Pages
  5. Under the left sidebar, click Save settings.
    The Save settings button in the Management Console
  6. 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."

  1. From an administrative account on GitHub Enterprise Server, click in the upper-right corner of any page.
    Rocketship icon for accessing site admin settings
  2. In the left sidebar, click Management Console.
    Management Console tab in the left sidebar
  3. In the left sidebar, click Pages.
    Pages sidebar
  4. Unselect Enable Pages.
    Checkbox to disable GitHub Pages
  5. Under the left sidebar, click Save settings.
    The Save settings button in the Management Console
  6. Wait for the configuration run to complete.

Further reading

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.