fcgipass

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2018 License: MIT Imports: 11 Imported by: 0

README

fcgipass

Proxy HTTP requests to FastCGI server

Usage

Usage of fcgipass:
  -dial-fcgi <network>:<address>
    	in format <network>:<address>, e.g. tcp:127.0.0.1:9000
  -document-root directory
    	directory that will be prepended to request path to be passed as SCRIPT_FILENAME
  -listen-http address
    	TCP address to listen on, e.g. 0.0.0.0:80
  -script-filename SCRIPT_FILENAME
    	passed to FastCGI process as SCRIPT_FILENAME, overrides document root

fcgipass will listen on port 8000 and route requests to FastCGI server on port 9000:

$ fcgipass -listen-http :8000 -dial-fcgi tcp:127.0.0.1:9000 -document-root /var/www

If all requests should be routed to the same file of FastCGI server, specify -script-filename:

$ fcgipass -listen-http :8000 -dial-fcgi tcp:127.0.0.1:9000 -script-filename /var/www/index.php

License

Licensed under MIT license. See LICENSE file.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL