Changeset 41172 for trunk/Nebulous/t/conf
- Timestamp:
- Nov 27, 2019, 12:04:14 PM (7 years ago)
- Location:
- trunk/Nebulous/t/conf
- Files:
-
- 2 edited
-
extra.conf.in (modified) (1 diff)
-
startup.pl.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/t/conf/extra.conf.in
r4911 r41172 3 3 # this file will be Include-d by @ServerRoot@/httpd.conf 4 4 5 # need to add MPM? 6 7 # Conflicts: mpm_worker mpm_prefork 8 #LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so 9 #LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so 10 LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so 11 #LoadModule cgid_module /usr/lib/apache2/modules/mod_cgid.so 12 LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so 13 LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so 14 15 # event MPM 16 # StartServers: initial number of server processes to start 17 # MinSpareThreads: minimum number of worker threads which are kept spare 18 # MaxSpareThreads: maximum number of worker threads which are kept spare 19 # ThreadsPerChild: constant number of worker threads in each server process 20 # MaxRequestWorkers: maximum number of worker threads 21 # MaxConnectionsPerChild: maximum number of requests a server process serves 22 <IfModule mpm_event_module> 23 StartServers 2 24 MinSpareThreads 25 25 MaxSpareThreads 75 26 ThreadLimit 64 27 ThreadsPerChild 25 28 MaxRequestWorkers 150 29 MaxConnectionsPerChild 0 30 </IfModule> 31 32 <IfModule mod_alias.c> 33 <IfModule mod_cgi.c> 34 # Define ENABLE_USR_LIB_CGI_BIN 35 </IfModule> 36 37 <IfModule mod_cgid.c> 38 # Define ENABLE_USR_LIB_CGI_BIN 39 </IfModule> 40 41 <IfDefine ENABLE_USR_LIB_CGI_BIN> 42 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ 43 <Directory "/usr/lib/cgi-bin"> 44 AllowOverride None 45 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch 46 Require all granted 47 </Directory> 48 </IfDefine> 49 </IfModule> 50 51 # nebulous location: 5 52 <Location /nebulous> 6 53 SetHandler perl-script 7 PerlResponseHandler Apache 2::SOAP54 PerlResponseHandler Apache::SOAP 8 55 PerlSetVar dispatch_to "PerlHandler Nebulous::Server::SOAP" 9 56 PerlSetVar options "compress_threshold => 10000" -
trunk/Nebulous/t/conf/startup.pl.in
r24372 r41172 5 5 use lib qw( @ServerRoot@ ); 6 6 7 use ModPerl::Util (); #for CORE::GLOBAL::exit 8 9 use Apache2::RequestRec (); 10 use Apache2::RequestIO (); 11 use Apache2::RequestUtil (); 12 13 use Apache2::ServerRec (); 14 use Apache2::ServerUtil (); 15 use Apache2::Connection (); 16 use Apache2::Log (); 17 18 use APR::Table (); 19 20 use ModPerl::Registry (); 21 22 use Apache2::Const -compile => ':common'; 23 use APR::Const -compile => ':common'; 24 25 use Apache::SOAP; 26 7 27 use Apache::DBI; 8 28 use DBI; … … 10 30 use Nebulous::Server::Apache; 11 31 use Nebulous::Server; 12 use Test::Nebulous; 32 33 # do not inherit here, let's be explicit 34 # use Test::Nebulous; 35 36 # EAM : making this match Nebulous-Server/docs/apache2-mod_perl-startup.pl: 37 38 # use the real mysql server: 39 #my $dsn = 'DBI:mysql:database=nebulous:host=localhost,mysql_socket=8500'; 40 #my $dbuser = 'nebulous'; 41 #my $dbpasswd = ''; 42 43 # use the test mysql server (defined in Test::Nebulous) 44 my $dsn = 'DBI:mysql:database=test:host=localhost:mysql_socket=/var/run/mysqld/mysqld.sock'; 45 my $dbuser = 'test'; 46 my $dbpasswd = ''; 13 47 14 48 #$Apache::DBI::DEBUG = 1; 15 Apache::DBI->connect_on_init( $NEB_DB, $NEB_USER, $NEB_PASS );16 Apache::DBI->setPingTimeOut($ NEB_DB, 10);49 #Apache::DBI->connect_on_init( $NEB_DB, $NEB_USER, $NEB_PASS ); 50 Apache::DBI->setPingTimeOut($dsn, 10); 17 51 18 52 my $config = Nebulous::Server::Config->new( … … 22 56 $config->add_db( 23 57 dbindex => 0, 24 dsn => $ NEB_DB,25 dbuser => $ NEB_USER,26 dbpasswd => $ NEB_PASS,58 dsn => $dsn, 59 dbuser => $dbuser, 60 dbpasswd => $dbpasswd, 27 61 ); 28 #$config->add_db(29 # dbindex => 1,30 # dsn => 'DBI:mysql:database=nebulous1:host=localhost',31 # dbuser => $dbuser,32 # dbpasswd => $dbpasswd,33 #);34 62 35 63 Nebulous::Server::SOAP->new_on_init($config);
Note:
See TracChangeset
for help on using the changeset viewer.
