|
@@ -0,0 +1,60 @@
|
|
1
|
+# see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
|
|
2
|
+
|
|
3
|
+ServerName www.rthoni.com
|
|
4
|
+Mutex file:/var/lock/apache2 default
|
|
5
|
+PidFile /var/run/apache2/apache2.pid
|
|
6
|
+Timeout 300
|
|
7
|
+KeepAlive On
|
|
8
|
+MaxKeepAliveRequests 100
|
|
9
|
+KeepAliveTimeout 5
|
|
10
|
+User www-data
|
|
11
|
+Group www-data
|
|
12
|
+HostnameLookups Off
|
|
13
|
+ErrorLog /var/log/apache2/error.log
|
|
14
|
+LogLevel warn
|
|
15
|
+
|
|
16
|
+IncludeOptional mods-enabled/*.load
|
|
17
|
+IncludeOptional mods-enabled/*.conf
|
|
18
|
+
|
|
19
|
+# ports.conf
|
|
20
|
+Listen 80
|
|
21
|
+<IfModule ssl_module>
|
|
22
|
+ Listen 443
|
|
23
|
+</IfModule>
|
|
24
|
+<IfModule mod_gnutls.c>
|
|
25
|
+ Listen 443
|
|
26
|
+</IfModule>
|
|
27
|
+
|
|
28
|
+DocumentRoot "/var/www/html/"
|
|
29
|
+
|
|
30
|
+<Directory />
|
|
31
|
+ Options FollowSymLinks
|
|
32
|
+ AllowOverride None
|
|
33
|
+ Require all denied
|
|
34
|
+</Directory>
|
|
35
|
+
|
|
36
|
+<Directory /var/www/html/>
|
|
37
|
+ Options FollowSymLinks
|
|
38
|
+ AllowOverride All
|
|
39
|
+ Require all granted
|
|
40
|
+</Directory>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
|
45
|
+LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
46
|
+LogFormat "%h %l %u %t \"%r\" %>s %O" common
|
|
47
|
+LogFormat "%{Referer}i -> %U" referer
|
|
48
|
+LogFormat "%{User-agent}i" agent
|
|
49
|
+
|
|
50
|
+CustomLog /var/log/apache2/access.log combined
|
|
51
|
+
|
|
52
|
+<FilesMatch \.php$>
|
|
53
|
+ SetHandler application/x-httpd-php
|
|
54
|
+</FilesMatch>
|
|
55
|
+
|
|
56
|
+# Multiple DirectoryIndex directives within the same context will add
|
|
57
|
+# to the list of resources to look for rather than replace
|
|
58
|
+# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
|
|
59
|
+DirectoryIndex disabled
|
|
60
|
+DirectoryIndex index.php index.html
|