UserGuide/Others/AFVPNProblem: edokumenty.vhost

Plik edokumenty.vhost, 2.8 KB (dodany przez jpo, 7 years temu)
xx
Line 
1<VirtualHost *:80>
2ServerAdmin admins@edokumenty.eu
3ServerSignature Off
4ServerName edokumenty.edokumenty.eu
5ServerAlias www.edokumenty.edokumenty.eu
6DocumentRoot /home/edokumenty/public_html
7DirectoryIndex index.html index.cgi index.pl index.php index.xhtml engine
8
9# Aliasy dla domy¶lnych systemów
10<IfModule mod_alias.c>
11    Alias /edokumenty /home/edokumenty/public_html
12    Alias /sync /home/edokumenty/public_html/apps/sync/engine.php
13    Alias /vdisk /home/edokumenty/public_html/apps/edokumenty/webdav2.php
14</IfModule>
15
16# Handler dla plików php
17<FilesMatch "(.+[.]inc$|.+[.]php$|engine)">
18    SetHandler application/x-httpd-php
19</FilesMatch>
20
21# Domy¶lny katalog dla redirect                       
22<Directory /home/*/public_html/>
23    Options -Indexes +FollowSymLinks +MultiViews
24    AllowOverride Options
25    Require all granted
26    # Odwo³ania do nazwy serwera przekieruj± do edokumentów
27</Directory>
28
29# Ewentualne pliki cgi-bin
30ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
31<Directory "/usr/lib/cgi-bin">
32    AllowOverride None
33    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
34    Order allow,deny
35    Allow from all
36</Directory>
37
38ErrorLog /var/log/apache2/edokumenty_error.log
39
40# Possible values include: debug, info, notice, warn, error, crit,
41# alert, emerg.
42LogLevel warn
43
44CustomLog /var/log/apache2/edokumenty_access.log combined
45</VirtualHost>
46
47
48
49
50<VirtualHost *:443>
51ServerName edokumenty.edokumenty.eu
52ServerAlias www.edokumenty.edokumenty.eu
53DocumentRoot /home/edokumenty/public_html
54DirectoryIndex index.html index.cgi index.pl index.php index.xhtml engine
55
56<IfModule mod_alias.c>
57    Alias /edokumenty /home/edokumenty/public_html
58    Alias /sync /home/edokumenty/public_html/apps/sync/engine.php
59    Alias /vdisk /home/edokumenty/public_html/apps/edokumenty/webdav2.php
60</IfModule>
61
62
63<Directory />
64                Options FollowSymLinks
65                AllowOverride None
66       </Directory>
67       <Directory /home/edokumenty/public_html>
68               Options -Indexes +FollowSymLinks +MultiViews
69               AllowOverride None
70               Require all granted
71               #Order allow,deny
72               #allow from all
73       </Directory>
74
75       ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
76       <Directory "/usr/lib/cgi-bin">
77              AllowOverride None
78               Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
79               Order allow,deny
80               Allow from all
81        </Directory>
82
83
84        SSLEngine on
85                SSLCertificateFile    /etc/ssl/private/ed17.pem
86                SSLCertificateKeyFile /etc/ssl/private/ed17.key
87ErrorLog /var/log/apache2/ssl_edokumenty_error.log
88
89        # Possible values include: debug, info, notice, warn, error, crit,
90        # alert, emerg.
91       LogLevel warn
92
93       CustomLog /var/log/apache2/ssl_edokumenty_access.log combined
94
95
96
97</VirtualHost>
98