Mark Overmeer > HTTP-Server-Multiplex > HTTP::Server::VirtualHost::LocalHost

Download:
HTTP-Server-Multiplex-0.11.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.11   Source  

NAME ^

HTTP::Server::VirtualHost::LocalHost - default virtual host

INHERITANCE ^

 HTTP::Server::VirtualHost::LocalHost
   is a HTTP::Server::VirtualHost

SYNOPSIS ^

DESCRIPTION ^

This default virtual host is created automatically when no virtual host has been registered when the daemon starts. The fun is that everyone is able to contact it with http://localhost:8080 (or what-ever your run-port is) without further configuration.

METHODS ^

Constructors

HTTP::Server::VirtualHost::LocalHost->new(OPTIONS|HASH-of-OPTIONS)

 Option        --Defined in     --Default
 aliases         HTTP::Server::VirtualHost  []
 directories     HTTP::Server::VirtualHost  <see text>
 directory_list  HTTP::Server::VirtualHost  <false>
 documents       HTTP::Server::VirtualHost  <undef>
 handlers        HTTP::Server::VirtualHost  {}
 index_file      HTTP::Server::VirtualHost  ['index.html', 'index.htm']
 name            HTTP::Server::VirtualHost  'localhost'
 rewrite         HTTP::Server::VirtualHost  <undef>
 user_dirs       HTTP::Server::VirtualHost  <see text>

. aliases => HOSTNAME|ARRAY-of-HOSTNAMES

. directories => OBJECT|HASH|ARRAY

. directory_list => BOOLEAN

. documents => DIRECTORY

. handlers => HASH

. index_file => STRING|ARRAY

. name => HOSTNAME

. rewrite => CODE

. user_dirs => undef|OBJECT|HASH

Attributes

$obj->aliases

See "Attributes" in HTTP::Server::VirtualHost

$obj->name

See "Attributes" in HTTP::Server::VirtualHost

Handler

$obj->handleRequest(CONNECTION, REQUEST)

See "Handler" in HTTP::Server::VirtualHost

$obj->requestForMe(URI)

See "Handler" in HTTP::Server::VirtualHost

$obj->showDirectory(CONNECTION, REQUEST, PATH, LIST)

See "Handler" in HTTP::Server::VirtualHost

Basic daemon actions

$obj->allow(CLIENT, SESSION, REQUEST, URI)

See "Basic daemon actions" in HTTP::Server::VirtualHost

$obj->rewrite(URI)

See "Basic daemon actions" in HTTP::Server::VirtualHost

Directories

$obj->addDirectory(OBJECT|OPTIONS)

See "Directories" in HTTP::Server::VirtualHost

$obj->directoryOf(PATH)

See "Directories" in HTTP::Server::VirtualHost

$obj->filename(URI)

See "Directories" in HTTP::Server::VirtualHost

Access permissions

DETAILS ^

SEE ALSO ^

This module is part of HTTP-Server-Multiplex distribution version 0.11, built on October 01, 2008. Website: http://perl.overmeer.net/httpd-multiplex/

LICENSE ^

Copyrights 2008 by Mark Overmeer. For other contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html

syntax highlighting: