aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/install/base/apache2
diff options
context:
space:
mode:
authorM.Gergo2019-03-08 21:20:34 +0100
committerM.Gergo2019-03-08 21:20:34 +0100
commitf51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 (patch)
treee13e60e4b94a3b58f1e2bfbe271102c8f04b67bd /mayor-orig/mayor-base/install/base/apache2
parentc76a004b0135786f2742283f8d5f917106f58bd8 (diff)
downloadmayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.tar.gz
mayor-f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0.zip
további rendrakás
Diffstat (limited to 'mayor-orig/mayor-base/install/base/apache2')
-rw-r--r--mayor-orig/mayor-base/install/base/apache2/mayor.conf46
1 files changed, 46 insertions, 0 deletions
diff --git a/mayor-orig/mayor-base/install/base/apache2/mayor.conf b/mayor-orig/mayor-base/install/base/apache2/mayor.conf
new file mode 100644
index 00000000..d50b25a5
--- /dev/null
+++ b/mayor-orig/mayor-base/install/base/apache2/mayor.conf
@@ -0,0 +1,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>