Skip to content

Commit 9790af9

Browse files
committed
Merge branch 'release/1.0.19'
2 parents c3f7ab9 + 6720972 commit 9790af9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Nginx-Craft Changelog
22

3+
## 1.0.19 - 2019.04.10
4+
### Added
5+
* Include an example of serving up a placeholder image when a 404 happens for static image assets
6+
37
## 1.0.18 - 2019.03.21
48
### Added
59
* Includes [Dotenvy](https://github.com/nystudio107/dotenvy) generated `.env` files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This Nginx configuration comes in two parts:
5151

5252
1. Obtain an SSL certificate for your domain via [LetsEncrypt.com](https://letsencrypt.org/) (or via other certificate authorities). LetsEncrypt.com is free, and it's automated. You will need a basic server up and running that responds to port 80 to do this, [LetsEnecrypt/Nginx tutorial](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04)
5353
2. Create a `dhparam.pem` via `sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048`
54-
3. Download your Issuer certificate via `sudo wget -O /etc/nginx/ssl/lets-encrypt-x3-cross-signed.pem "https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem"`
54+
3. Download your Issuer certificate via `mkdir /etc/nginx/ssl; sudo wget -O /etc/nginx/ssl/lets-encrypt-x3-cross-signed.pem "https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem"`
5555
4. Upload the entire `nginx-partials` folder to `/etc/nginx/`
5656
5. Rename the `somedomain.com.conf` file to `yourdomain.com.conf`
5757
6. Do a search & replace in `yourdomain.com.conf` to change `SOMEDOMAIN` -> `yourdomain`

nginx-partials/expires.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ location ~* \.(?:rss|atom)$ {
1818

1919
# Media: images, icons, video, audio, HTC
2020
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp3|mp4|ogg|ogv|webm|htc|webp)$ {
21+
# Uncomment these lines if you want to serve up a placeholder image for 404s
22+
# for static assets:
23+
# error_page 404 /img/placeholder-image.png;
24+
# try_files $uri =404;
2125
etag off;
2226
expires 1M;
2327
access_log off;

0 commit comments

Comments
 (0)