Skip to content

andrewmcwattersandco/gh-pages-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

gh-pages-nginx

NGINX configuration file for GitHub Pages

gh-pages-nginx is a small feature-specific configuration file1 designed specifically for the use-case of pointing your index to a GitHub Pages website, so that other locations on the same domain may be configured for other servers.

Installing

Copy username.com.conf to /etc/nginx/conf.d and rename the configuration file to your domain.

Update the proxy_pass directive URL in the configuration file to your https://username.github.io GitHub Pages URL.2

Add your own location blocks.34

License

GNU General Public License v2.0

Footnotes

  1. https://docs.nginx.com/nginx/admin-guide/basic-functionality/managing-configuration-files/#feature-specific-configuration-files

  2. https://pages.github.com

  3. https://docs.nginx.com/nginx/admin-guide/basic-functionality/managing-configuration-files/#virtual-servers

  4. https://nginx.org/en/docs/http/ngx_http_core_module.html#location

About

NGINX configuration file for GitHub Pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published