Skip to content

Commit

Permalink
add doc for under-construction page
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Berger committed Apr 13, 2015
1 parent 605b3c9 commit 5e6a64e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion under_construction/README
@@ -1,2 +1,3 @@
This is a stand-alone website. It serves as an 'under-construction' page.
In order to use it set the directory containing this file as the server root dir and navigate to index.html.
In order to use it, set the directory containing this file as the server root dir, and set under_construction.html as the index and fallback.
See doc for example nginx site file.
35 changes: 35 additions & 0 deletions under_construction/doc/under-construction-nginx-site
@@ -0,0 +1,35 @@
server {
listen 80;

# Change to bhsclient dir for local development
root /home/bhs/bhsclient/public/under_construction;
index under_construction.html;

server_name bhsclient;

location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.
try_files $uri $uri/ /under_construction.html;
autoindex on;
expires off;
}

error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}


# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}

0 comments on commit 5e6a64e

Please sign in to comment.