a tiny & fast http to fastcgi reverse proxy
237
Quickly serve any
FastCGIbased application with no hassle.
ā http2fcgi --root /var/www/laravel-project/public --http :8000
ā http2fcgi -h
Usage of http2fcgi:
-ext comma separated list
the fastcgi file extension(s) comma separated list (default "php")
-fcgi string
the fcgi backend to connect to, you can pass more fcgi related params as query params (default "unix:///var/run/php/php7.0-fpm.sock")
-http string
the http address to listen on (default ":6065")
-index string comma separated list
the default index file (default "index.php,index.html")
-listing
whether to allow directory listing or not
-root string
the document root (default "./")
-router string
the router filename incase of any 404 error (default "index.php")
-rtimeout int
the read timeout, zero means unlimited
-wtimeout int
the write timeout, zero means unlimited
http2fcgi is a reverse proxy that will convert the standard
httprequest tofcgirequest so it can served by i.ephp,python... etc.
I wanted a production ready simple and tiny solution to serve some of my
laravelbased projects.
Binary, go to the releases pageā .
Using Docker ā docker run --network=host -v /var/www/site/public:/var/www/site/public -v /var/run/php/php7.0-fpm.sock:/var/run/php/php7.0-fpm.sock alash3al/http2fcgi -root /var/www/site/public -http :8085.
Using Go ā go get github.com/alash3al/http2fcgi.
From your app you can ask
http2fcgito send a file with any size directly to the browser without any hassle in your app logic, just send a headerX-SendFile: /full/path/to/filethen lethttp2fcgideal with it.
Mohammed Al Ashaal
MIT License
Content type
Image
Digest
Size
121 MB
Last updated
over 8 years ago
docker pull alash3al/http2fcgi