aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/install/base/apache2/mayor.conf
blob: d50b25a5ca2f3439bc8cf424aaa3284bde15003e (plain)
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
<VirtualHost *:443>
	ServerName your.mayor.server.hu

	ServerAdmin webmaster@localhost

	SSLEngine On
	SSLCertificateFile /etc/apache2/ssl/apache.pem
# #	SSLCertificateFile /etc/apache2/ssl/crt/name-cert.pem
# #	SSLCertificateKeyFile /etc/apache2/ssl/key/name-key.pem

	DocumentRoot /var/mayor/www/
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/mayor/www/>
		Options -Indexes +FollowSymLinks +MultiViews
		AllowOverride None
		# Apache 2.2 # Order allow,deny
		# Apache 2.2 # allow from all
		# Apache 2.4 # Require all granted
		<IfVersion >= 2.3>
		    Require all granted
		</IfVersion>
		<IfVersion < 2.3>
		    order allow,deny
        	    allow from all
		</IfVersion>
                RewriteEngine on
                RewriteBase /
                RewriteCond %{SERVER_PORT} ^80$
                RewriteCond %{THE_REQUEST}  .*(policy=private|page=auth|page=password).*
                RewriteRule (.*)$ https://%{SERVER_NAME}/$1 [L]

	</Directory>

	ErrorLog /var/log/apache2/error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/access.log combined
	ServerSignature On

</VirtualHost>