Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Danny Berger
committed
Apr 13, 2015
1 parent
605b3c9
commit 5e6a64e
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
|