Apache-Wombat

 view release on metacpan or  search on metacpan

conf/server.xml.PL  view on Meta::CPAN

# ripped off from LWP. Thanks!

use strict;
use warnings;

use Config;
use File::Basename qw(basename dirname);

chdir dirname $0;

(my $file = basename $0) =~ s/\.PL$//;
$file =~ s/\.pl$// if ($Config{'osname'} eq 'VMS' or
                       $Config{'osname'} eq 'OS2');  # "case-forgiving"

open OUT,">$file" or die "Can't create $file: $!";
chmod 0755, $file;

require '../.cfg';

print "Extracting $file (with variable substitutions)\n";

print OUT <<"!GROK!THIS!";
<!-- Wombat server configuration file -->

<!--
Component elements are nested corresponding to their parent-child
relationships with each other.
-->

<!--
A Server represents the entire perl interpreter, which may contain one
or more Services.

Note: a Server is not a Container, so you may not define subcomponents
such as Valves or Loggers at this level.
-->
<Server>

<!--
A Service is a collection of one or more Connectors that share a
single Container (and therefore the web applications visible within
that Container). Normally that container is an Engine, but this is not
required.

When embedding Wombat within Apache/mod_perl, only a single Service is
needed, using the Apache Connector and a standard Engine.

Note: a Service is not a Container, so you may not define
subcomponents such as Valves or Loggers at this level.
-->
  <Service>

<!--
A Connector represents an endpoint by which requests are received and
response are returned. Each Connector passes requests on to the
associated Container for processing.

By default, a non-secure Connector is enabled. You may also enable a
secure Connector by uncommenting the second Connector
entry. Apache::Wombat will refuse a request if the \$HTTPS
environment variable is set but no secure Connector is enabled.
-->
    <Connector className="Apache::Wombat::Connector"
               scheme="http"/>
<!--
    <Connector className="Apache::Wombat::Connector"
               scheme="https" secure="1"/>
-->

<!--
An Engine is the highest level container; it processes every
request. The Engine inspects the HTTP Host header and passes the
request along to the appropriate Host (virtual host).

The defaultHost attribute should be be the same value as the Apache
ServerName.



( run in 1.066 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )