Implement --forward-all to forward all requests to a given url.

Suggested and initially implemented by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Emil Mikulic
2014-03-14 22:36:37 +11:00
parent d28bb0c9f7
commit f73bf69a1e
4 changed files with 62 additions and 7 deletions

6
README
View File

@ -49,9 +49,15 @@ Web forward (301) requests for some hosts:
$ ./darkhttpd /var/www/htdocs --forward example.com http://www.example.com \
--forward secure.example.com https://www.example.com/secure
Web forward (301) requests for all hosts:
$ ./darkhttpd /var/www/htdocs --forward example.com http://www.example.com \
--forward-all http://catchall.example.com
Commandline options can be combined:
$ ./darkhttpd ~/public_html --port 8080 --addr 127.0.0.1
To see a full list of commandline options,
run darkhttpd without any arguments:
$ ./darkhttpd
vim:set ts=2 sw=2 et tw=80: