]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/apache/templates/001-phd.conf
b4e06a2531c52a609ad86c28530d9d7bd24cb875
[ansible.git] / playbooks / debian / roles / apache / templates / 001-phd.conf
1 ServerName localhost
2 ServerAdmin webmaster@{{ inventory_hostname }}
3 MaxConnectionsPerChild 10
4
5 <IfModule prefork.c>
6 StartServers         2
7 MinSpareServers      2
8 MaxSpareServers      5
9 MaxRequestWorkers    20
10 </IfModule>
11
12 <IfModule threaded.c>
13 StartServers         2
14 MaxRequestWorkers    5
15 MinSpareThreads      2
16 MaxSpareThreads     10
17 ThreadsPerChild     25
18 </IfModule>
19
20 <IfModule perchild.c>
21 NumServers           2
22 StartThreads         2
23 MinSpareThreads      2
24 MaxSpareThreads     10
25 MaxThreadsPerChild  25
26 </IfModule>
27
28 User www-data
29 Group www-data
30
31 AddDefaultCharset koi8-r
32
33 <Location /cgi-bin/printenv>
34     AuthType Basic
35     AuthName Apache
36     AuthUserFile /usr/local/apache2/data/apache.passwd
37     <RequireAll>
38     Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
39     Require user webmaster
40     </RequireAll>
41 </Location>
42
43 <IfModule mod_cgid.c>
44 Scriptsock            data/cgisock
45 </IfModule>
46
47 <IfModule mod_dir.c>
48    DirectoryIndex index.shtml index.html index.htm
49 </IfModule>
50
51 <IfModule mod_mime.c>
52    AddHandler cgi-script .cgi
53 </IfModule>
54
55 <IfModule mod_include.c>
56    <Files *.shtml>
57    Options +IncludesNOEXEC
58    </Files>
59    AddType text/html .shtml
60    AddOutputFilter INCLUDES .shtml
61 </IfModule>
62
63 <IfModule mod_info.c>
64 <Location /server-info>
65     SetHandler server-info
66     Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
67 </Location>
68 </IfModule>
69
70 <IfModule mod_status.c>
71 <Location /server-status>
72     SetHandler server-status
73     Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
74 </Location>
75
76 ExtendedStatus On
77 </IfModule>
78
79 <Location /printenv.shtml>
80     Require ip 127.0.0.1 {{ ansible_facts.default_ipv4.address }}
81 </Location>
82
83 <IfModule mod_env.c>
84 SetEnv LC_CTYPE ru_RU.KOI8-R
85 SetEnv LC_COLLATE ru_RU.KOI8-R
86 </IfModule>
87
88 <IfModule mod_proxy.c>
89 <Proxy *>
90    Require ip 127.0.0.1
91 </Proxy>
92
93 ProxyRequests Off
94 </IfModule>
95
96 LanguagePriority ru en
97
98 <IfModule mod_userdir.c>
99 UserDir public_html
100 </IfModule>
101
102 <Directory /home>
103 Options Indexes FollowSymLinks
104 RemoveHandler .py
105 </Directory>
106
107 <VirtualHost {{ ansible_facts.default_ipv4.address }}:80>
108 ServerName unknown.invalid
109 DocumentRoot /usr/local/apache2/_default_/
110 ErrorDocument 404 /nothing.html
111
112 <Directory /usr/local/apache2/_default_/>
113 Require all granted
114 </Directory>
115 </VirtualHost>
116
117 <VirtualHost _default_:*>
118 DocumentRoot /usr/local/apache2/_default_/
119 ErrorDocument 404 /nothing.html
120
121 <Directory /usr/local/apache2/_default_/>
122 Require all granted
123 </Directory>
124 </VirtualHost>
125
126 # non-SNI clients
127 SSLStrictSNIVHostCheck off