Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kissaki/nginx-config
Nginx webserver configuration files and structure
https://github.com/kissaki/nginx-config
Last synced: 21 days ago
JSON representation
Nginx webserver configuration files and structure
- Host: GitHub
- URL: https://github.com/kissaki/nginx-config
- Owner: Kissaki
- Created: 2015-12-07T22:09:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-07T12:53:34.000Z (over 8 years ago)
- Last Synced: 2024-12-12T16:48:51.233Z (22 days ago)
- Language: Nginx
- Homepage:
- Size: 7.81 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Prepared configuration for Nginx.
Managing multiple webpages and subdomains requires some structuring,
and reusing common configuration makes sense.This setup features some common, reusable configuration (caching, listening…)
in the includes folder, and some sane and safe default configuration for SSL.sites-available contains an example configuration for a subdomain,
including HTTP to HTTPS rewrite, redirection, and seo-url for some
PHP software.The example.org is an example configuration featuring various of these,
while the example.com configuration is a minimal configuration.
This makes the latter configuration a good default for new pages,
while the first is a good reference if you are looking to do something
specific.Now that [Let’s Encrypt](https://letsencrypt.org/) is in open beta, a configuration file
`acme-challenge` is also included to map the challenge url path to
a common location (the challenge is temporary, and has nothing to do
with the actual website).While some software is not able to handle HTTP and HTTPS at the same
time, since letsencrypt is usable, from now on everything should
be set up to only be served as HTTPS. Thus, HTTP to HTTPS redirection
should be used if it was previously available on HTTP. If not, just
do not provide HTTP at all; browsers will automatically pick up HTTPS.mime-types was extended; e.g. for json.
The default SSL configuration has been moved out of nginx.conf into includes/ssl.