mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
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:
6
README
6
README
@ -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:
|
||||
|
Reference in New Issue
Block a user