From 8c05b81d6860d8e0da4098cc6f59f630d7c53037 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 25 Mar 2008 16:29:54 +0000 Subject: * Committing Lulurun's Cgi/Perl implementation of the UGAI servers. * I love you long time. --- share/perl/conf/httpd-vhosts.conf | 25 +++++++++++++++++++++++++ share/perl/conf/mod_perl-startup.pl | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 share/perl/conf/httpd-vhosts.conf create mode 100644 share/perl/conf/mod_perl-startup.pl (limited to 'share/perl/conf') diff --git a/share/perl/conf/httpd-vhosts.conf b/share/perl/conf/httpd-vhosts.conf new file mode 100644 index 0000000..447150f --- /dev/null +++ b/share/perl/conf/httpd-vhosts.conf @@ -0,0 +1,25 @@ +LoadModule perl_module modules/mod_perl.so +PerlRequire "conf/mod_perl-startup.pl" + +NameVirtualHost *:80 + + ServerName opensim.lulu + ServerAdmin webmaster@opensim.lulu + DocumentRoot /home/lulu/temp/opensim + ErrorLog logs/opensim-error_log + CustomLog logs/opensim-access_log common + + + Options MultiViews All + AllowOverride None + Order allow,deny + Allow from all + + + + SetHandler perl-script + PerlResponseHandler ModPerl::Registry + PerlOptions +ParseHeaders + + + diff --git a/share/perl/conf/mod_perl-startup.pl b/share/perl/conf/mod_perl-startup.pl new file mode 100644 index 0000000..e8bdb2c --- /dev/null +++ b/share/perl/conf/mod_perl-startup.pl @@ -0,0 +1,34 @@ +# Taken from http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File + +if ( ! $ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; } + +# !!! set this to your opensim's lib +use lib qw(/home/lulu/temp/opensim/lib); + +# enable if the mod_perl 1.0 compatibility is needed +# use Apache2::compat (); + +# preload all mp2 modules +# use ModPerl::MethodLookup; +# ModPerl::MethodLookup::preload_all_modules(); + +use ModPerl::Util (); #for CORE::GLOBAL::exit + +use Apache2::RequestRec (); +use Apache2::RequestIO (); +use Apache2::RequestUtil (); + +use Apache2::ServerRec (); +use Apache2::ServerUtil (); +use Apache2::Connection (); +use Apache2::Log (); + +use APR::Table (); + +use ModPerl::Registry (); + +use Apache2::Const -compile => ':common'; +use APR::Const -compile => ':common'; + + +1; -- cgit v1.1