2017 © Pedro Peláez
 

library aerys-reverse

image

amphp/aerys-reverse

  • Monday, October 30, 2017
  • by kelunik
  • Repository
  • 4 Watchers
  • 12 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Aerys Reverse

License, (*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)

  • PHP 7.0+

Installation, (*5)

composer require amphp/aerys-reverse

Usage

<?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)

The Versions

30/10 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bob Weinand