$web/etc/rewrite
/sys/lib/httpd.rewrite and the second is by $web/etc/rewrite. The former is managed by the server administrator and the latter, by the document administrator.
The first field is a path from document root, therefore
/"/~"scheme://hostdom[:port][/path][;params][?query]/path[;params][?query][ ] is meta symbol that denote inside of these symbol can be omitted andscheme :: any schemehostdom :: full name of host (pegasus.goodwill.com for example)port :: port numberpath :: path to documentparams :: argument list for CGIquery :: query string
/private https://pegasus.goodwill.com/privatethat appeared in case study of
/sys/lib/httpd.rewrite.bob wrote such a line? He wanted to use https for /private.http://pegasus.goodwill.com/private. The request will then be redirected to https://pegasus.goodwill.com/private. The client will make a second request https://pegasus.goodwill.com/private. What will happen then?https://pegasus.goodwill.com/private, then the redirection will fall into infinite loop! Therefore Pegasus does not redirect the request and simply accept as a request of this URI.$web/etc/rewrite, not in /sys/lib/httpd.rewrite. And the loop must be closed in a single line.