Hi Friends,
I am new user of linux operating system. I wanted to install a software but facing a difficulty.
I am not able to proceed to the next statement without resolving this. WFT is the software i need for my purpose.
Setup a MySQL user account for WTF that will have access to
... (1 Reply)
Hi
anyone know how to setup a setup a virtual IP to control 2 server load for linux? i only have 2 server, i don want to buy another just for the load balance... is there a way to do it?
Sumemr (0 Replies)
I know that IBM's official stance is that NIM does not work on etherchannel environment, but has anyone able to get around it?
I'm working on a p5-590 LPAR system, and the NIM master and clients are all on the same frame.
Any help is appreciated. (1 Reply)
Hi,
Can anyone please guide me how can I remove/block a user from a server access.
/usr/sbin/adduser -d /home/john john
echo ****** | passwd --stdin john
I used the above command to add a user "john". How do I delete and block john.
Appreciate your responses. (1 Reply)
hi
i want to set up LInux mail server for intranet purpose. i used following document as reference Linux Mail Server
softwares used are :
Postfix # pre installed
Procmail # pre installed
Fetchmail # pre installed
SpamBayes
Mutt #... (1 Reply)
I am working on setting sudo on a few AIX servers and wanted to know how to give users root access without allowing them access to the sudo logs, sudoers files and the /etc/security directory. (3 Replies)
i need to set up a user to execute a restricted command as another user and to be able to do so without entering a password. I understand the security concerns but let's not go there, unless you are really compelled to do so... The directive to permit is that I believe should work and did add to... (2 Replies)
Hi,
I am new in linux. Please help for create new user and also need to give sudo access in linux box. Please help me
Now i am having new access
Thanks,
Mani (2 Replies)
I have a home network set up that consists of a few windows clients and 3 centos, and 1 suse client. These are all virtual machines, VMware Workstation. One centos vm is set to be the Samba server. Do I need Samba set up on the other Linux clients?I have no problem seeing the windows clients... (0 Replies)
How do I setup a Samba server to always ask to user and password, when a windows user, prints your files using a shared printer through a Samba Linux Server (CUPS)? (0 Replies)
Discussion started by: viga
0 Replies
LEARN ABOUT DEBIAN
mojo::server::fastcgi
Mojo::Server::FastCGI(3pm) User Contributed Perl Documentation Mojo::Server::FastCGI(3pm)NAME
Mojo::Server::FastCGI - FastCGI Server
SYNOPSIS
use Mojo::Server::FastCGI;
my $fcgi = Mojo::Server::FastCGI->new;
$fcgi->on_request(sub {
my ($self, $tx) = @_;
# Request
my $method = $tx->req->method;
my $path = $tx->req->url->path;
# Response
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body("$method request for $path!");
# Resume transaction
$tx->resume;
});
$fcgi->run;
DESCRIPTION
Mojo::Server::FastCGI is a portable pure-Perl FastCGI implementation as described in the "FastCGI Specification".
See Mojolicious::Guides::Cookbook for deployment recipes.
ATTRIBUTES
Mojo::Server::FastCGI inherits all attributes from Mojo::Server.
METHODS
Mojo::Server::FastCGI inherits all methods from Mojo::Server and implements the following new ones.
"accept_connection"
my $c = $fcgi->accept_connection;
Accept FastCGI connection.
"read_record"
my ($type, $id, $body) = $fcgi->read_record($c);
Parse FastCGI record.
"read_request"
my $tx = $fcgi->read_request($c);
Parse FastCGI request.
"role_name"
my $name = $fcgi->role_name(3);
FastCGI role name.
"role_number"
my $number = $fcgi->role_number('FILTER');
FastCGI role number.
"run"
$fcgi->run;
Start FastCGI.
"type_name"
my $name = $fcgi->type_name(5);
FastCGI type name.
"type_number"
my $number = $fcgi->type_number('STDIN');
FastCGI type number.
"write_records"
$fcgi->write_record($c, 'STDOUT', $id, 'HTTP/1.1 200 OK');
Write FastCGI record.
"write_response"
$fcgi->write_response($tx);
Write FastCGI response.
DEBUGGING
You can set the "MOJO_FASTCGI_DEBUG" environment variable to get some advanced diagnostics information sent to the Mojo logger as "debug"
messages.
MOJO_FASTCGI_DEBUG=1
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.12.4 2011-11-02 Mojo::Server::FastCGI(3pm)