webredirect(1)

NAME
webredirect - Small web server serving "301 Moved Permanently" only

SYNOPSIS
webredirect [-d] [-h] [-p portno] [-a address] -t target

DESCRIPTION
The webredirect program is an extremely small web server that gives the "301 Moved Permanently" response to all "GET", "HEAD" and "POST" responses. At the moment, all other requests are unsupported and result in a "501 Not Supported" response.

The options are as follows:
-d  Turn on verbose (debug) logging.
-h  Display a brief help message listing the options and exit.
-p portno
    Listen for requests on the port portno. Default is 80.
-a address
    Listen on specific address address. Default is INADDR_ANY. This is useful if the machine has multiple interfaces and you only want to redirect on one of them.
-t target
    Redirect users to target. The entire root-relative (non-host) part of the request URI will be appended to this, so a trailing slash should not be included.

ENVIRONMENT
The webredirect command ignores all environment variables.

FILES
The webredirect command doesn't read or write any files except through syslog.

EXAMPLES
The following is an example of a typical usage of the webredirect command:

    % webredirect -t http://new.server.org

In this case, if the server runs on old.server.org, a request for http://old.server.org/foo.html will be redirected to http://new.server.org/foo.html

DIAGNOSTICS
Log messages are sent to syslog. The webredirect program is not supposed to exit unless you kill(1) it.

STANDARDS
The webredirect program is supposed to conform to the HTTP 1.0 standard

HISTORY
The webredirect program was first written in October 2000. Release 0.2 appeared in March 2001.

AUTHOR
webredirect and its manual page was written by Rasmus Kaj <rasmus@kaj.se>. Developed under sponsorship by Raditex AB, http://Raditex.se/

BUGS
Please report any you might find to the AUTHOR.