Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

http::server::simple::static(3pm) [debian man page]

HTTP::Server::Simple::Static(3pm)			User Contributed Perl Documentation			 HTTP::Server::Simple::Static(3pm)

NAME
HTTP::Server::Simple::Static - Serve static files with HTTP::Server::Simple VERSION
This documentation refers to HTTP::Server::Simple::Static version 0.07 SYNOPSIS
package MyServer; use base qw(HTTP::Server::Simple::CGI); use HTTP::Server::Simple::Static; sub handle_request { my ( $self, $cgi ) = @_; return $self->serve_static( $cgi, $webroot ); } package main; my $server = MyServer->new(); $server->run(); DESCRIPTION
this mixin adds a method to serve static files from your HTTP::Server::Simple subclass. SUBROUTINES
/METHODS serve_static Takes a base directory and a web path, and tries to serve a static file. Returns 0 if the file does not exist, returns 1 on success. BUGS AND LIMITATIONS
Bugs or wishlist requests should be submitted via http://rt.cpan.org/ SEE ALSO
AUTHOR
Stephen Quinney "sjq-perl@jadevine.org.uk" Thanks to Marcus Ramberg "marcus@thefeed.no" and Simon Cozens for initial implementation. LICENSE AND COPYRIGHT
Copyright 2006 - 2008. Stephen Quinney "sjq-perl@jadevine.org.uk" You may distribute this code under the same terms as Perl itself. perl v5.14.2 2012-06-30 HTTP::Server::Simple::Static(3pm)

Check Out this Related Man Page

Authen::Simple::HTTP(3pm)				User Contributed Perl Documentation				 Authen::Simple::HTTP(3pm)

NAME
Authen::Simple::HTTP - Simple HTTP authentication SYNOPSIS
use Authen::Simple::HTTP; my $http = Authen::Simple::HTTP->new( url => 'http://www.host.com/protected' ); if ( $http->authenticate( $username, $password ) ) { # successfull authentication } # or as a mod_perl Authen handler PerlModule Authen::Simple::Apache PerlModule Authen::Simple::HTTP PerlSetVar AuthenSimpleHTTP_url "http://www.host.com/protected" <Location /protected> PerlAuthenHandler Authen::Simple::HTTP AuthType Basic AuthName "Protected Area" Require valid-user </Location> DESCRIPTION
Authenticate against an HTTP server. METHODS
* new This method takes a hash of parameters. The following options are valid: * url Url to authenticate against. Required. url => 'http://www.host.com/protected' * agent Any object that is a subclass of LWP::UserAgent. agent => LWP::UserAgent->new; * log Any object that supports "debug", "info", "error" and "warn". log => Log::Log4perl->get_logger('Authen::Simple::HTTP') * authenticate( $username, $password ) Returns true on success and false on failure. SEE ALSO
Authen::Simple. LWP::UserAgent. LWPx::ParanoidAgent. AUTHOR
Christian Hansen "ch@ngmedia.com" COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2008-03-01 Authen::Simple::HTTP(3pm)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Server Error 500. Total Newbie. Ugh.

Hi everybody... I'm trying to run some very simple cgi scripts on my server whilst I learn perl. Today is day 3 of that process, so I apologize in advance for not having enough knowledge to ask the right questions. Any program I try to execute gives me an Internal Server Error (500) message.... (4 Replies)
Discussion started by: paqi the black
4 Replies

2. Programming

Static

What does this command exactly do cc -static example.c (6 Replies)
Discussion started by: wojtyla
6 Replies

3. Linux

HTTP server

Hello all, Please tell me that how to configure a HTTP server in Fedora Core 3 Also tell me about WEB HOSTING under Linux. (4 Replies)
Discussion started by: jaibw
4 Replies

4. UNIX for Dummies Questions & Answers

Help In Compaq Tru64 UNix

Hi, I am new to UNIX. I need help in working with Compaq-UX TRU64 OS. How It work FTP Server? ANd MAil Server? and I have apach pprogram project and it work as HTTP Server. Also I need how can setup a new version of progrm on UNix like mozilla and adobe reader etc........... Thank... (3 Replies)
Discussion started by: svuad
3 Replies

5. AIX

Static Routes question

I added a static route through smit using: Communications applications and Services ==> TCIP/IP ==> Further Configuration ==> Static Routes ==> Add a Static Route ==> Route Type of host Filled in Destination Address, Default Gateway Address and Network Interface of en0. This... (2 Replies)
Discussion started by: jyoung
2 Replies

6. IP Networking

Static IP / Subnet mask and Gateway

Hi all, I installed Fedora 9 + squid at one of PC at work. Our company has windows 2003 servera acting as DHCP server. During installation, i set linux box up as Static IP (192.168.0.100) But once installation completed, The pc is assigned a different IP address instead of 192.168.0.100.... (3 Replies)
Discussion started by: c00kie88
3 Replies

7. Shell Programming and Scripting

Reading File from Server - perl

Hey, I'm trying to read a file from a server. Simple file with some numbers. Here is the code i'm running. use Net::SSH::Perl::SSH1 ; $scon = Net::SSH::Perl->new ("com123.sever.mydomain.com",(protocol=>'2',port=>'22',debug=>'true')); $scon->login("user123","pass123"); open(FILE,... (9 Replies)
Discussion started by: Phi01
9 Replies

8. Shell Programming and Scripting

Simple list file ls to an array

Hi all, Simple question, how can I simply create an array from listing the files in a directory i..e myvar=`ls`; echo $myvar gives a fulllist of files/ directories how can I now convery myvar to an array so I can loop around and read each file/dir? Thnaks CF:) (6 Replies)
Discussion started by: cyberfrog
6 Replies

9. AIX

Server package information + more?

Hi, I am trying to get out as much package information as possible from an AIX 5.3 server. So far I have run the following command # lslpp -Lac > ./ The c is for future formatting. The package name and description are helpful - but is there any other package information I can get -... (3 Replies)
Discussion started by: smithhadl
3 Replies

10. Red Hat

Uninstall Perl in Redhat Server

Hi All, Currently i am using 'Red Hat Enterprise Linux Server release 5.5 (Tikanga)' server. Here perl 5.8.8 64bit version installed (location : /usr/bin/perl). I want remove the current perl and install 5.8.4 64bit perl. I know how to configure the perl version. Could you please tell me how to... (2 Replies)
Discussion started by: k_manimuthu
2 Replies

11. Linux

Help|Block Perl

Hey All, I'm New Here and i want An important question for me, how i can block files scripts in lang perl?! i have Server VpS Linux CenTOS. Please Help Me. Thanks. (2 Replies)
Discussion started by: LinuxHelpp
2 Replies

12. Shell Programming and Scripting

How to read files by Server Creation date wise?

Hi All, I would have many files in the server with xyz*.dat -- Static file name Physical files: xyz1.dat - 01PM xyz2.dat - 02PM xyz3.dat - 03PM In present version we are using for f in $file_name do fname=`ls $f | grep -v ^'\|'$ | sed s/' '/'\\ '/g` .... sqlldr... (4 Replies)
Discussion started by: Dharv
4 Replies

13. Shell Programming and Scripting

How to preserve time stamp while copying a directory from Server B to Server A?

Experts, Please help me out here. How to preserve time stamp while copying a directory from Server B to Server A (3 Replies)
Discussion started by: ahmed.vaghar
3 Replies

14. Red Hat

Taking an image or clone of Red Hat server

Dear All , We have a linux Server where we have installed all our Softwares and applications. Now we want to clone this Server to another server or copy the image of it and put it in the another server.So that all the softwares and apps appear in the new server also , rather than re... (7 Replies)
Discussion started by: jegaraman
7 Replies