Remove redirect.html, now make use of index.html only

This commit is contained in:
Matthias Strubel 2017-05-22 07:35:36 +02:00
parent 9eebea7d6e
commit 36548a4572
5 changed files with 4 additions and 15 deletions

View File

@ -81,7 +81,7 @@ $HTTP["url"] =~ "^/board/" {
# 404 Error Page with redirect
#
#server.error-handler-404 = "/redirect.html"
#server.error-handler-404 = "/index.html"
## for better debugging
#server.modules += ( "mod_accesslog" )

View File

@ -81,7 +81,7 @@ $HTTP["url"] =~ "^/board/" {
# 404 Error Page with redirect
#
#server.error-handler-404 = "/redirect.html"
#server.error-handler-404 = "/index.html"
## for better debugging
#server.modules += ( "mod_accesslog" )

View File

@ -163,7 +163,7 @@ fi
set_hostname() {
local name=$1 ; shift;
sed "s|#####HOST#####|$name|g" $PIRATEBOX_FOLDER/src/redirect.html.schema > $WWW_FOLDER/redirect.html
sed "s|#####HOST#####|$name|g" $PIRATEBOX_FOLDER/src/redirect.html.schema > $WWW_FOLDER/index.html
sed "s|HOST=\"$HOST\"|HOST=\"$name\"|" -i $PIRATEBOX_CONFIG
}

View File

@ -99,7 +99,7 @@ setenv.add-response-header += ( "Cache-Control" => "max-age=60, must-revalidate,
# 404 Error Page with redirect
#
server.error-handler-404 = "/redirect.html"
server.error-handler-404 = "/indext.html"
## for better debugging
#server.modules += ( "mod_accesslog" )

View File

@ -1,11 +0,0 @@
<html>
<head><title>Redirect...</title>
<meta http-equiv="refresh" content="0;url=http://piratebox.lan/content" />
<meta http-equiv='cache-control' content='no-cache, no-store, must-revalidate' />
<meta http-equiv='pragma' content='no-cache' />
<meta http-equiv='expires' content='0' />
</head>
<body>
Redirect
</body>
</html>