hostname of the webserver inserted to allow relative links

This commit is contained in:
lars 2005-05-19 01:22:44 +00:00
parent e5d878db27
commit 20b8da0df2
2 changed files with 10 additions and 7 deletions

View file

@ -4,4 +4,7 @@ echo
echo "Starting web-splash ..." echo "Starting web-splash ..."
/etc/init.d/S89web-splash start /etc/init.d/S89web-splash start
echo echo
echo "Maybe you should restart your webserver (thttpd needs this to see the new error-404-document).." echo "Maybe you should:"
echo " 1) restart your webserver (thttpd needs this to see the new error-404-document)"
echo " 2) change the hostname in /www/index.html to the IP or name of the router"
echo

View file

@ -1,21 +1,21 @@
<html> <html>
<head> <head>
<meta http-equiv="expires" content="0"> <meta http-equiv="expires" content="0">
<meta http-equiv="refresh" content="0; URL=http://100.100.100.100/cgi-bin/web-splash.cgi"> <meta http-equiv="refresh" content="0; URL=http://wrt/cgi-bin/web-splash.cgi">
<!-- the destination IP does NOT matter, because everything gets redirected <!-- the name of the host part of the URL does not really matter if you do not
by the iptables rules to this webserver as long as the source IP use relative links within the SPLASH_DOCUMENT page
is not registered; of course you may adapt it to your network address --> maybe you want to put the name (or IP) of your router here -->
<title>Umleitung des offenen Netzes</title> <title>Umleitung des offenen Netzes</title>
</head> </head>
<body> <body>
<br><br> <br><br>
<p>If you do not get redirected, then please follow this <a href="http://100.100.100.100/cgi-bin/web-splash.cgi">link</a> to enable internet access.</p> <p>If you do not get redirected, then please follow this <a href="http://wrt/cgi-bin/web-splash.cgi">link</a> to enable internet access.</p>
<hr> <hr>
<p>Falls du nicht automatisch weitergeleitet wurdest, dann folge diesem <a href="http://100.100.100.100/cgi-bin/web-splash.cgi">Link</a>, um deine Internetverbindung freizuschalten.</p> <p>Falls du nicht automatisch weitergeleitet wurdest, dann folge diesem <a href="http://wrt/cgi-bin/web-splash.cgi">Link</a>, um deine Internetverbindung freizuschalten.</p>
</body> </body>
</html> </html>