Configuring GitHub Pages for your enterprise

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

Enabling public sites for GitHub Pages

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. In the top-right corner of GitHub AE, click your profile photo, then click Enterprise settings. "Enterprise settings" in drop-down menu for profile photo on GitHub AE

  2. In the enterprise sidebar, click Policies. Policies tab in the enterprise account sidebar

  3. Under " Policies", click Pages. Pages tab in the enterprise sidebar

  4. Under "Pages policies", select Public GitHub Pages. Checkbox to enable public GitHub Pages

  5. Click Save. Save button

Disabling GitHub Pages for your enterprise

  1. In the top-right corner of GitHub AE, click your profile photo, then click Enterprise settings. "Enterprise settings" in drop-down menu for profile photo on GitHub AE

  2. In the enterprise sidebar, click Policies. Policies tab in the enterprise account sidebar

  3. Under " Policies", click Pages. Pages tab in the enterprise sidebar

  4. Under "Pages policies", deselect Enable GitHub Pages. Checkbox to disable GitHub Pages

  5. Click Save. Save button

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.