dev-master
9999999-dev
MIT
The Requires
The Development Requires
by Bob Weinand
, (*1)
amphp/aerys-reverse
is a reverse HTTP proxy handler for use with the Aerys
webserver., (*2)
EXPERIMENTAL, USE AT YOUR OWN RISK!, (*3)
Required PHP Version, (*4)
Installation, (*5)
composer require amphp/aerys-reverse
<?php return (new Aerys\Host) ->use(new Aerys\ReverseProxy("https://amphp.org/", ["Host" => ["amphp.org"]]);
Now all requests to the webserver are reverse proxied to https://amphp.org/, with all the headers preserved and the Host
header set to amphp.org
., (*6)
Alternatively one also can pass a callable as second parameter, which then gets all the headers in and should return the headers to send., (*7)
As optional third argument an Amp\Artax\Client
instance can be passed (should use NullCookieJar
) to setup certain options., (*8)
MIT