Skip to content

Commit

Permalink
Add 404 page to the book.
Browse files Browse the repository at this point in the history
Add skeleton pages and update nginx configuration
to redirect 404s to a real page.
  • Loading branch information
markstory committed Jul 23, 2016
1 parent 3701864 commit 230afb8
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 1 deletion.
5 changes: 5 additions & 0 deletions en/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Not Found
#########

The page you're looking for cannot be found. Try using the search bar to find
what you're looking for.
5 changes: 5 additions & 0 deletions es/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Not Found
#########

The page you're looking for cannot be found. Try using the search bar to find
what you're looking for.
5 changes: 5 additions & 0 deletions fr/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Not Found
#########

The page you're looking for cannot be found. Try using the search bar to find
what you're looking for.
5 changes: 5 additions & 0 deletions ja/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Not Found
#########

The page you're looking for cannot be found. Try using the search bar to find
what you're looking for.
7 changes: 7 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ server {
gzip_proxied any;
gzip_types text/plain text/xml text/css application/x-javascript;
gzip_vary on;

# Error pages not publically exposed
error_page 404 /404.html
location = /404.html {
root /var/www/html;
internal;
}
}
5 changes: 5 additions & 0 deletions pt/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Not Found
#########

The page you're looking for cannot be found. Try using the search bar to find
what you're looking for.
2 changes: 1 addition & 1 deletion themes/cakephp/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h4 class="modal-title-cookbook" id="modal-header">{# header text injected via j
{# Document body #}
<div class="row">
<div class="col-sm-12 col-md-9 col-md-push-3 space-left push-off">
{%- if pagename != 'search' and pagename != 'contents' and pagename != 'index' -%}
{%- if pagename != 'search' and pagename not in ('contents', 'index', '404') -%}
<div class="page-contents col-sm-5">
<h3>{{ _('Page Contents') }}</h3>
{{ toc }}
Expand Down
5 changes: 5 additions & 0 deletions tr/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Not Found
#########

The page you're looking for cannot be found. Try using the search bar to find
what you're looking for.
5 changes: 5 additions & 0 deletions zh/404.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Not Found
#########

The page you're looking for cannot be found. Try using the search bar to find
what you're looking for.

0 comments on commit 230afb8

Please sign in to comment.