annotate httpd.conf @ 2:a7a3e4f626ff

sync
author sergey
date Wed, 07 May 2014 12:35:55 +0400
parents aac1085b256d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
aac1085b256d initial commit
cin
parents:
diff changeset
1
aac1085b256d initial commit
cin
parents:
diff changeset
2 LoadModule ldap_module /usr/lib64/apache2-prefork/mod_ldap.so
aac1085b256d initial commit
cin
parents:
diff changeset
3 LoadModule authnz_ldap_module /usr/lib64/apache2-prefork/mod_authnz_ldap.so
aac1085b256d initial commit
cin
parents:
diff changeset
4 LoadModule actions_module /usr/lib64/apache2-prefork/mod_actions.so
aac1085b256d initial commit
cin
parents:
diff changeset
5 LoadModule alias_module /usr/lib64/apache2-prefork/mod_alias.so
aac1085b256d initial commit
cin
parents:
diff changeset
6 LoadModule auth_basic_module /usr/lib64/apache2-prefork/mod_auth_basic.so
aac1085b256d initial commit
cin
parents:
diff changeset
7 LoadModule authz_host_module /usr/lib64/apache2-prefork/mod_authz_host.so
aac1085b256d initial commit
cin
parents:
diff changeset
8 LoadModule authz_core_module /usr/lib64/apache2-prefork/mod_authz_core.so
aac1085b256d initial commit
cin
parents:
diff changeset
9 LoadModule authz_user_module /usr/lib64/apache2-prefork/mod_authz_user.so
aac1085b256d initial commit
cin
parents:
diff changeset
10 LoadModule cgi_module /usr/lib64/apache2-prefork/mod_cgi.so
aac1085b256d initial commit
cin
parents:
diff changeset
11 LoadModule dir_module /usr/lib64/apache2-prefork/mod_dir.so
aac1085b256d initial commit
cin
parents:
diff changeset
12 LoadModule env_module /usr/lib64/apache2-prefork/mod_env.so
aac1085b256d initial commit
cin
parents:
diff changeset
13 LoadModule expires_module /usr/lib64/apache2-prefork/mod_expires.so
aac1085b256d initial commit
cin
parents:
diff changeset
14 LoadModule log_config_module /usr/lib64/apache2-prefork/mod_log_config.so
aac1085b256d initial commit
cin
parents:
diff changeset
15 LoadModule mime_module /usr/lib64/apache2-prefork/mod_mime.so
aac1085b256d initial commit
cin
parents:
diff changeset
16 LoadModule negotiation_module /usr/lib64/apache2-prefork/mod_negotiation.so
aac1085b256d initial commit
cin
parents:
diff changeset
17 LoadModule setenvif_module /usr/lib64/apache2-prefork/mod_setenvif.so
aac1085b256d initial commit
cin
parents:
diff changeset
18 LoadModule rewrite_module /usr/lib64/apache2-prefork/mod_rewrite.so
aac1085b256d initial commit
cin
parents:
diff changeset
19 LoadModule perl_module /usr/lib64/apache2/mod_perl.so
aac1085b256d initial commit
cin
parents:
diff changeset
20
aac1085b256d initial commit
cin
parents:
diff changeset
21 ServerName 127.0.0.1
aac1085b256d initial commit
cin
parents:
diff changeset
22 DocumentRoot public_html
aac1085b256d initial commit
cin
parents:
diff changeset
23 Listen 2077
aac1085b256d initial commit
cin
parents:
diff changeset
24 PidFile httpd.pid
aac1085b256d initial commit
cin
parents:
diff changeset
25
aac1085b256d initial commit
cin
parents:
diff changeset
26 ErrorLog httpd.log
aac1085b256d initial commit
cin
parents:
diff changeset
27 CustomLog httpd.log "%h %l %u %t \"%r\" %>s %b"
aac1085b256d initial commit
cin
parents:
diff changeset
28
aac1085b256d initial commit
cin
parents:
diff changeset
29 PerlSwitches -T
aac1085b256d initial commit
cin
parents:
diff changeset
30
aac1085b256d initial commit
cin
parents:
diff changeset
31 <Perl >
aac1085b256d initial commit
cin
parents:
diff changeset
32 use Cwd qw(cwd);
aac1085b256d initial commit
cin
parents:
diff changeset
33 use File::Spec();
aac1085b256d initial commit
cin
parents:
diff changeset
34
aac1085b256d initial commit
cin
parents:
diff changeset
35 my ($base) = (cwd() =~ m/(.*)/);
aac1085b256d initial commit
cin
parents:
diff changeset
36 $IMPL::Config::AppBase = $base;
aac1085b256d initial commit
cin
parents:
diff changeset
37 $IMPL::Config::ConfigBase = File::Spec->catdir($base, 'config');
aac1085b256d initial commit
cin
parents:
diff changeset
38
aac1085b256d initial commit
cin
parents:
diff changeset
39 push @INC, File::Spec->catdir($base,'lib');
aac1085b256d initial commit
cin
parents:
diff changeset
40 push @INC, File::Spec->catdir($base,'../Impl/Lib');
aac1085b256d initial commit
cin
parents:
diff changeset
41
aac1085b256d initial commit
cin
parents:
diff changeset
42 require Benzin::Apache::CookieAuth;
aac1085b256d initial commit
cin
parents:
diff changeset
43 require Benzin::Web::Application;
aac1085b256d initial commit
cin
parents:
diff changeset
44 </Perl>
aac1085b256d initial commit
cin
parents:
diff changeset
45
aac1085b256d initial commit
cin
parents:
diff changeset
46 Alias /favicon.ico public_html/favicon.ico
aac1085b256d initial commit
cin
parents:
diff changeset
47 Alias /js/ public_html/js/
aac1085b256d initial commit
cin
parents:
diff changeset
48 Alias /css/ public_html/css/
aac1085b256d initial commit
cin
parents:
diff changeset
49 Alias /static/ public_html/static/
aac1085b256d initial commit
cin
parents:
diff changeset
50 Alias /images/ public_html/images/
aac1085b256d initial commit
cin
parents:
diff changeset
51
aac1085b256d initial commit
cin
parents:
diff changeset
52 Alias / public_html/cgi-bin/handler.pl/
aac1085b256d initial commit
cin
parents:
diff changeset
53
aac1085b256d initial commit
cin
parents:
diff changeset
54 <Directory public_html>
aac1085b256d initial commit
cin
parents:
diff changeset
55 AllowOverride none
aac1085b256d initial commit
cin
parents:
diff changeset
56 Require all granted
aac1085b256d initial commit
cin
parents:
diff changeset
57 </Directory>
aac1085b256d initial commit
cin
parents:
diff changeset
58
aac1085b256d initial commit
cin
parents:
diff changeset
59 <Directory public_html/cgi-bin >
aac1085b256d initial commit
cin
parents:
diff changeset
60 #SetHandler perl-script
aac1085b256d initial commit
cin
parents:
diff changeset
61 #PerlHandler Benzin::Web::Application
aac1085b256d initial commit
cin
parents:
diff changeset
62
aac1085b256d initial commit
cin
parents:
diff changeset
63 SetHandler cgi-script
aac1085b256d initial commit
cin
parents:
diff changeset
64 Options +ExecCGI
aac1085b256d initial commit
cin
parents:
diff changeset
65 </Directory>
aac1085b256d initial commit
cin
parents:
diff changeset
66
aac1085b256d initial commit
cin
parents:
diff changeset
67 <Location />
aac1085b256d initial commit
cin
parents:
diff changeset
68 #AuthName "Your collab account"
aac1085b256d initial commit
cin
parents:
diff changeset
69 #AuthType benzin
aac1085b256d initial commit
cin
parents:
diff changeset
70 #PerlAuthenHandler Benzin::Apache::CookieAuth
aac1085b256d initial commit
cin
parents:
diff changeset
71
aac1085b256d initial commit
cin
parents:
diff changeset
72 #Require valid-user
aac1085b256d initial commit
cin
parents:
diff changeset
73 </Location>
aac1085b256d initial commit
cin
parents:
diff changeset
74
aac1085b256d initial commit
cin
parents:
diff changeset
75 <Location /user>
aac1085b256d initial commit
cin
parents:
diff changeset
76 Require all granted
aac1085b256d initial commit
cin
parents:
diff changeset
77 </Location>
aac1085b256d initial commit
cin
parents:
diff changeset
78 <Location /js>
aac1085b256d initial commit
cin
parents:
diff changeset
79 Require all granted
aac1085b256d initial commit
cin
parents:
diff changeset
80 </Location>
aac1085b256d initial commit
cin
parents:
diff changeset
81 <Location /css>
aac1085b256d initial commit
cin
parents:
diff changeset
82 Require all granted
aac1085b256d initial commit
cin
parents:
diff changeset
83 </Location>
aac1085b256d initial commit
cin
parents:
diff changeset
84 <Location /static>
aac1085b256d initial commit
cin
parents:
diff changeset
85 Require all granted
aac1085b256d initial commit
cin
parents:
diff changeset
86 </Location>
aac1085b256d initial commit
cin
parents:
diff changeset
87 <Location /images>
aac1085b256d initial commit
cin
parents:
diff changeset
88 Require all granted
aac1085b256d initial commit
cin
parents:
diff changeset
89 </Location>
aac1085b256d initial commit
cin
parents:
diff changeset
90 <Location /favicon.ico>
aac1085b256d initial commit
cin
parents:
diff changeset
91 Require all granted
aac1085b256d initial commit
cin
parents:
diff changeset
92 </Location>