diff options
author | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 16:45:08 (GMT) |
---|---|---|
committer | Katze Miau <miaukatzemiau@priveasy.de> | 2011-12-11 16:45:08 (GMT) |
commit | 65c39ba8336b9efc1d76350ae27a18da6d51d5f6 (patch) | |
tree | 153e9f49fb41e451c75b5a824f119cfab019db6e /files/common/www/service | |
parent | ee91359463ae23b2ebe5cb235c7e11d362be81c8 (diff) |
fsm inetable: change httpd instances in queen/ghost/robinson states
- update the redirection uhttpd config and www-root to redirect all
incoming request to a url specified by /tmp/redirection_target
- use this to implement robinson and splash redirection during
robinson and queen/ghost states, respectively
- change the service httpd to listen on the public IPv4 address
available on the mesh interface in those states.
Missing is the
- iptable based redirection
- already referenced /sbin/urlencode
Diffstat (limited to 'files/common/www/service')
-rwxr-xr-x | files/common/www/service/cgi-bin/redirect | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/files/common/www/service/cgi-bin/redirect b/files/common/www/service/cgi-bin/redirect deleted file mode 100755 index 9b417db..0000000 --- a/files/common/www/service/cgi-bin/redirect +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -echo -en "Cache-Control: no-cache, max-age=0, no-store, must-revalidate\r\n" -echo -en "Pragma: no-cache\r\n" -echo -en "Expires: -1\r\n" -echo -en "Status: 302 Temporary Redirect\r\n" -echo -en "Location: http://"`uci get network.mesh.ipaddr`"/cgi-bin/splash?"`/bin/urlencode "$HTTP_HOST$REQUEST_URI"`"\r\n" -echo -en "\r\n" -exit 0 |