#
# /etc/apache2/sites-availble/default
# Apache configuration file
#
# BetaSoft (c) 2006
# @version 0.8
# @author Jacek Paszek
#
# Base configuration for use of eDokumenty
# TODO
# Konfiguracja SVN
# Konfiguracja mod_dav
# 
# Last modified: 04.10.2006
#

ServerAdmin admins@betasoft.pl
ServerSignature Off
DocumentRoot /home/edokumenty/public_html
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml engine

# Aliasy dla domy�lnych system�w
<IfModule mod_alias.c>
    Alias /edokumenty /home/edokumenty/public_html
    Alias /sync /home/edokumenty/public_html/apps/sync/engine.php
    Alias /vdisk /home/edokumenty/public_html/apps/edokumenty/webdav2.php
    Alias /caldav /home/edokumenty/public_html/dav.php
</IfModule>

# Handler dla plik�w php
<FilesMatch "(.+[.]inc$|.+[.]php$|engine)">
    SetHandler application/x-httpd-php
</FilesMatch>

# Domy�lny katalog dla redirect                       
<Directory /home/*/public_html/>
    Options -Indexes +FollowSymLinks +MultiViews
    AllowOverride Options
    Require all granted
    # Odwo�ania do nazwy serwera przekieruj� do edokument�w
</Directory>

#<Directory "/home/edokumenty/public_html/apps/edokumenty/var">
#    <FilesMatch "\.(php|inc)$">
#        Order allow,deny
#        Deny from all
#    </FilesMatch>
#    php_flag engine off
#</Directory>


<Files ~ "\.(pl|cgi)$">
    SetHandler perl-script
#    PerlResponseHandler ModPerl::PerlRun
    Options +ExecCGI
#    PerlSendHeader On
</Files>


# Ewentualne pliki cgi-bin
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    AddHandler cgi-script .pl
    
</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

#NameVirtualHost *:80
Listen 81
<VirtualHost *:81>
	DocumentRoot     /home/edokumenty/public_html/dav.php
</VirtualHost>

#NameVirtualHost *:443
#<VirtualHost *:443>
#    SSLEngine on
#    SSLCertificateFile /etc/apache2/ssl/apache.pem
#</VirtualHost>

# vim: filetype=apache ts=4 sw=4 et

