All Projects → LukasBoersma → FastCGI

LukasBoersma / FastCGI

Licence: MIT License
FastCGI client library for .NET

Programming Languages

C#
18002 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to FastCGI

Protocol Fcgi
FastCGI (FCGI) Protocol implementation for PHP
Stars: ✭ 106 (+360.87%)
Mutual labels:  fastcgi
fcgi-function
A cross-platform module to writing C/C++ service for nginx.
Stars: ✭ 33 (+43.48%)
Mutual labels:  fastcgi
fastcgi-archives.github.io
FastCGI.com files backups
Stars: ✭ 27 (+17.39%)
Mutual labels:  fastcgi
Gofast
gofast is a FastCGI "client" library written purely in go
Stars: ✭ 140 (+508.7%)
Mutual labels:  fastcgi
Criollo
A powerful Cocoa web framework and HTTP server for macOS, iOS and tvOS.
Stars: ✭ 229 (+895.65%)
Mutual labels:  fastcgi
gofcgi
golang client for fastcgi
Stars: ✭ 14 (-39.13%)
Mutual labels:  fastcgi
Kitura Net
Kitura networking
Stars: ✭ 98 (+326.09%)
Mutual labels:  fastcgi
Fastcgi
The Hoa\Fastcgi library.
Stars: ✭ 58 (+152.17%)
Mutual labels:  fastcgi
Fastcgipp
fastcgi++: A C++ FastCGI and Web development platform:
Stars: ✭ 236 (+926.09%)
Mutual labels:  fastcgi
mod fastcgi
FastCGI.com mod_fastcgi apache 2 module fork from http://repo.or.cz/mod_fastcgi.git + last SNAP-0910052141 snapshot
Stars: ✭ 23 (+0%)
Mutual labels:  fastcgi
Haproxy
HAProxy Load Balancer's development branch (mirror of git.haproxy.org)
Stars: ✭ 2,463 (+10608.7%)
Mutual labels:  fastcgi
Kcgi
minimal CGI and FastCGI library for C/C++
Stars: ✭ 194 (+743.48%)
Mutual labels:  fastcgi
nsqproxy
NSQProxy是NSQ和Worker之间的中间件,根据配置负责消息转发。然后通过HTTP/FastCGI/CBNSQ等协议转发给Worker机执行。
Stars: ✭ 79 (+243.48%)
Mutual labels:  fastcgi
Fcgi2
FastCGI.com fcgi2 Development Kit fork from http://repo.or.cz/fcgi2.git + last snapshot
Stars: ✭ 134 (+482.61%)
Mutual labels:  fastcgi
Fos
FastCgi Server designed to run Owin applications side by side with a FastCgi enabled web server.
Stars: ✭ 65 (+182.61%)
Mutual labels:  fastcgi
Php Fpm Queue
Use php-fpm as a simple built-in async queue
Stars: ✭ 103 (+347.83%)
Mutual labels:  fastcgi
http2fcgi
a quick & tiny http to fast-cgi reverse proxy, let's serve our php,python ... etc apps with no hassle!
Stars: ✭ 57 (+147.83%)
Mutual labels:  fastcgi
k8s-lemp
LEMP stack in a Kubernetes cluster
Stars: ✭ 74 (+221.74%)
Mutual labels:  fastcgi
LaraSible
A complete ansible playbook for create a hosting envorinment with Nginx, PHP-FPM, Redis and MariaDB for Laravel Framework on Linux
Stars: ✭ 15 (-34.78%)
Mutual labels:  fastcgi
node-fastcgi
Create FastCGI applications with node.js
Stars: ✭ 49 (+113.04%)
Mutual labels:  fastcgi

FastCGI for .NET

Windows/.NET Linux/Mono
Build status Build Status

This is an implementation of FastCGI for .NET, written in C#. It implements the parts of the protocol that are necessary to build a simple web application using .NET.

This means that you can write web applications in C# that serve dynamic content.

License and contributing

This software is distributed under the terms of the MIT license. You can use it for your own projects for free under the conditions specified in LICENSE.txt.

If you have questions, feel free to contact me. Visit lukas-boersma.com for my contact details.

If you think you found a bug, you can open an Issue on Github. If you make changes to this library, I would be happy about a pull request.

Documentation

The project documentation is hosted here: fastcgi-for-net.readthedocs.org

The user guide is mostly the same as this readme. Here is a direct link to the API reference.

Nuget

The library is available via NuGet. To install, type this in the package manager console:

Install-Package FastCGI

Or, using the command-line interface:

nuget install FastCGI

For more information, refer to the NuGet documentation.

Basic usage

The most common usage scenario is to use this library together with a web server like Apache and nginx. The web server will serve static content and forward HTTP requests for dynamic content to your application.

Have a look at the FastCGI.FCGIApplication class for usage examples and more information.

This code example shows how to create a FastCGI application and receive requests:

// Create a new FCGIApplication, will accept FastCGI requests
var app = new FCGIApplication();

// Handle requests by responding with a 'Hello World' message
app.OnRequestReceived += (sender, request) =>
{
    var responseString =
          "HTTP/1.1 200 OK\n"
        + "Content-Type:text/html\n"
        + "\n"
        + "Hello World!";

    request.WriteResponseASCII(responseString);
    request.Close();
};

// Start listening on port 19000
app.Run(19000);

Web server configuration

For nginx, use fastcgi_pass to pass requests to your FastCGI application:

location / {
    fastcgi_pass   127.0.0.1:19000; # Pass all requests to port 19000 via FastCGI.
    include fastcgi_params; # (Optional): Set several FastCGI parameters like the remote IP and other metadata.
}

For more details, refer to your web server documentation for configuration details:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].