This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-08-20. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Article version: Enterprise Server 2.18

Configuring GitHub Pages on your appliance

You can enable or disable GitHub Pages on your instance. You can also choose to make GitHub Pages sites publicly accessible.

In this article

Making GitHub Pages publicly accessible

If private mode is enabled on your instance, the public cannot access GitHub Pages sites hosted on your GitHub Enterprise Server instance.

Warning: If you enable public GitHub Pages sites, every GitHub Pages site in every repository on your instance will be accessible to the public.

  1. In the upper-right corner of any page, click .
    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.
    Save settings button

Disabling GitHub Pages on your GitHub Enterprise Server instance

If subdomain isolation is disabled for your GitHub Enterprise Server instance, you should also disable GitHub Pages to protect yourself from potential security vulnerabilities. For more information, see "Enabling subdomain isolation."

  1. In the upper-right corner of any page, click .
    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.
    Save settings button

Further reading

Ask a human

Can't find what you're looking for?

Contact us