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