| 1 | # |
|---|
| 2 | # /etc/apache2/sites-availble/default |
|---|
| 3 | # Apache configuration file |
|---|
| 4 | # |
|---|
| 5 | # BetaSoft (c) 2006 |
|---|
| 6 | # @version 0.8 |
|---|
| 7 | # @author Jacek Paszek |
|---|
| 8 | # |
|---|
| 9 | # Base configuration for use of eDokumenty |
|---|
| 10 | # TODO |
|---|
| 11 | # Konfiguracja SVN |
|---|
| 12 | # Konfiguracja mod_dav |
|---|
| 13 | # |
|---|
| 14 | # Last modified: 04.10.2006 |
|---|
| 15 | # |
|---|
| 16 | |
|---|
| 17 | ServerAdmin admins@betasoft.pl |
|---|
| 18 | ServerSignature Off |
|---|
| 19 | DocumentRoot /home/edokumenty/public_html |
|---|
| 20 | DirectoryIndex index.html index.cgi index.pl index.php index.xhtml engine |
|---|
| 21 | |
|---|
| 22 | # Aliasy dla domy¶lnych systemów |
|---|
| 23 | <IfModule mod_alias.c> |
|---|
| 24 | Alias /edokumenty /home/edokumenty/public_html |
|---|
| 25 | Alias /sync /home/edokumenty/public_html/apps/sync/engine.php |
|---|
| 26 | Alias /vdisk /home/edokumenty/public_html/apps/edokumenty/webdav2.php |
|---|
| 27 | Alias /caldav /home/edokumenty/public_html/dav.php |
|---|
| 28 | </IfModule> |
|---|
| 29 | |
|---|
| 30 | # Handler dla plików php |
|---|
| 31 | <FilesMatch "(.+[.]inc$|.+[.]php$|engine)"> |
|---|
| 32 | SetHandler application/x-httpd-php |
|---|
| 33 | </FilesMatch> |
|---|
| 34 | |
|---|
| 35 | # Domy¶lny katalog dla redirect |
|---|
| 36 | <Directory /home/*/public_html/> |
|---|
| 37 | Options -Indexes +FollowSymLinks +MultiViews |
|---|
| 38 | AllowOverride Options |
|---|
| 39 | Require all granted |
|---|
| 40 | # Odwo³ania do nazwy serwera przekieruj± do edokumentów |
|---|
| 41 | </Directory> |
|---|
| 42 | |
|---|
| 43 | #<Directory "/home/edokumenty/public_html/apps/edokumenty/var"> |
|---|
| 44 | # <FilesMatch "\.(php|inc)$"> |
|---|
| 45 | # Order allow,deny |
|---|
| 46 | # Deny from all |
|---|
| 47 | # </FilesMatch> |
|---|
| 48 | # php_flag engine off |
|---|
| 49 | #</Directory> |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | <Files ~ "\.(pl|cgi)$"> |
|---|
| 53 | SetHandler perl-script |
|---|
| 54 | # PerlResponseHandler ModPerl::PerlRun |
|---|
| 55 | Options +ExecCGI |
|---|
| 56 | # PerlSendHeader On |
|---|
| 57 | </Files> |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | # Ewentualne pliki cgi-bin |
|---|
| 61 | ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ |
|---|
| 62 | <Directory "/usr/lib/cgi-bin"> |
|---|
| 63 | AllowOverride None |
|---|
| 64 | Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch |
|---|
| 65 | Order allow,deny |
|---|
| 66 | Allow from all |
|---|
| 67 | AddHandler cgi-script .pl |
|---|
| 68 | |
|---|
| 69 | </Directory> |
|---|
| 70 | |
|---|
| 71 | ErrorLog /var/log/apache2/error.log |
|---|
| 72 | |
|---|
| 73 | # Possible values include: debug, info, notice, warn, error, crit, |
|---|
| 74 | # alert, emerg. |
|---|
| 75 | LogLevel warn |
|---|
| 76 | |
|---|
| 77 | CustomLog /var/log/apache2/access.log combined |
|---|
| 78 | |
|---|
| 79 | #NameVirtualHost *:80 |
|---|
| 80 | Listen 81 |
|---|
| 81 | <VirtualHost *:81> |
|---|
| 82 | DocumentRoot /home/edokumenty/public_html/dav.php |
|---|
| 83 | </VirtualHost> |
|---|
| 84 | |
|---|
| 85 | #NameVirtualHost *:443 |
|---|
| 86 | #<VirtualHost *:443> |
|---|
| 87 | # SSLEngine on |
|---|
| 88 | # SSLCertificateFile /etc/apache2/ssl/apache.pem |
|---|
| 89 | #</VirtualHost> |
|---|
| 90 | |
|---|
| 91 | # vim: filetype=apache ts=4 sw=4 et |
|---|
| 92 | |
|---|