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.
-
In the top-right corner of GitHub AE, click your profile photo, then click Enterprise settings.

-
In the enterprise sidebar, click Policies.

-
Under " Policies", click Pages.

-
Under "Pages policies", select Public GitHub Pages.

-
Click Save.

Disabling GitHub Pages for your enterprise
-
In the top-right corner of GitHub AE, click your profile photo, then click Enterprise settings.

-
In the enterprise sidebar, click Policies.

-
Under " Policies", click Pages.

-
Under "Pages policies", deselect Enable GitHub Pages.

-
Click Save.
