diff options
author | Adam Frisby | 2008-03-25 16:29:54 +0000 |
---|---|---|
committer | Adam Frisby | 2008-03-25 16:29:54 +0000 |
commit | 8c05b81d6860d8e0da4098cc6f59f630d7c53037 (patch) | |
tree | 3325e09660ee8ad5a12cc19c8da6c4bd8bff5c21 /share/perl/conf | |
parent | * On Ray casting. Now returning the face normal of the collision face. (diff) | |
download | opensim-SC-8c05b81d6860d8e0da4098cc6f59f630d7c53037.zip opensim-SC-8c05b81d6860d8e0da4098cc6f59f630d7c53037.tar.gz opensim-SC-8c05b81d6860d8e0da4098cc6f59f630d7c53037.tar.bz2 opensim-SC-8c05b81d6860d8e0da4098cc6f59f630d7c53037.tar.xz |
* Committing Lulurun's Cgi/Perl implementation of the UGAI servers.
* I love you long time.
Diffstat (limited to 'share/perl/conf')
-rw-r--r-- | share/perl/conf/httpd-vhosts.conf | 25 | ||||
-rw-r--r-- | share/perl/conf/mod_perl-startup.pl | 34 |
2 files changed, 59 insertions, 0 deletions
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 @@ | |||
1 | LoadModule perl_module modules/mod_perl.so | ||
2 | PerlRequire "conf/mod_perl-startup.pl" | ||
3 | |||
4 | NameVirtualHost *:80 | ||
5 | <VirtualHost *:80> | ||
6 | ServerName opensim.lulu | ||
7 | ServerAdmin webmaster@opensim.lulu | ||
8 | DocumentRoot /home/lulu/temp/opensim | ||
9 | ErrorLog logs/opensim-error_log | ||
10 | CustomLog logs/opensim-access_log common | ||
11 | |||
12 | <Directory "/home/lulu/temp/opensim"> | ||
13 | Options MultiViews All | ||
14 | AllowOverride None | ||
15 | Order allow,deny | ||
16 | Allow from all | ||
17 | </Directory> | ||
18 | |||
19 | <Files ~ "\.cgi$"> | ||
20 | SetHandler perl-script | ||
21 | PerlResponseHandler ModPerl::Registry | ||
22 | PerlOptions +ParseHeaders | ||
23 | </Files> | ||
24 | </VirtualHost> | ||
25 | |||
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 @@ | |||
1 | # Taken from http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File | ||
2 | |||
3 | if ( ! $ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; } | ||
4 | |||
5 | # !!! set this to your opensim's lib | ||
6 | use lib qw(/home/lulu/temp/opensim/lib); | ||
7 | |||
8 | # enable if the mod_perl 1.0 compatibility is needed | ||
9 | # use Apache2::compat (); | ||
10 | |||
11 | # preload all mp2 modules | ||
12 | # use ModPerl::MethodLookup; | ||
13 | # ModPerl::MethodLookup::preload_all_modules(); | ||
14 | |||
15 | use ModPerl::Util (); #for CORE::GLOBAL::exit | ||
16 | |||
17 | use Apache2::RequestRec (); | ||
18 | use Apache2::RequestIO (); | ||
19 | use Apache2::RequestUtil (); | ||
20 | |||
21 | use Apache2::ServerRec (); | ||
22 | use Apache2::ServerUtil (); | ||
23 | use Apache2::Connection (); | ||
24 | use Apache2::Log (); | ||
25 | |||
26 | use APR::Table (); | ||
27 | |||
28 | use ModPerl::Registry (); | ||
29 | |||
30 | use Apache2::Const -compile => ':common'; | ||
31 | use APR::Const -compile => ':common'; | ||
32 | |||
33 | |||
34 | 1; | ||