-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapache2.conf
More file actions
129 lines (105 loc) · 3.01 KB
/
Copy pathapache2.conf
File metadata and controls
129 lines (105 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
Mutex file:/tmp/ default
PidFile log/apache2.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
# These need to be set in /etc/apache2/envvars
User www-data
Group www-data
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 9006
<IfModule ssl_module>
Listen 12443
</IfModule>
<IfModule mod_gnutls.c>
Listen 12443
</IfModule>
HostnameLookups Off
ErrorLog log/apache2-error.log
LogLevel info
# Include module configuration:
IncludeOptional /etc/apache2/mods-enabled/*.load
IncludeOptional /etc/apache2/mods-enabled/*.conf
# Include list of ports to listen on
# Include ports.conf
ServerName od.iem.pw.edu.pl
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /home/sowad/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
<VirtualHost *:9006>
ServerName od:9006
ServerAdmin webmaster@localhost
DocumentRoot /home/sowad/www
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
# ErrorLog /home/sowad/log/eror-ssl.log
# CustomLog /home/sowad/log/access.log combined
#
# SSLEngine on
#
# SSLCertificateFile /home/sowad/test.crt
# SSLCertificateKeyFile /home/sowad/test.key
# <FilesMatch "\.(cgi|shtml|phtml|php)$">
# SSLOptions +StdEnvVars
# </FilesMatch>
# <Directory /usr/lib/cgi-bin>
# SSLOptions +StdEnvVars
# </Directory>
#
# BrowserMatch "MSIE [2-6]" \
# nokeepalive ssl-unclean-shutdown \
# downgrade-1.0 force-response-1.0
# BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. See also the AllowOverride
# directive.
#
AccessFileName .htaccess
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
LoadModule python_module /usr/lib/apache2/modules/mod_python.so
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet