User Tools

Site Tools


owncloud:hosts

OwnCloud vhost file

<VirtualHost *:443>
                                        DocumentRoot /var/www/owncloud
                        
                ServerName owncloud.knallimall.org
                ServerAdmin webmaster@owncloud.knallimall.org

                ErrorLog /path/to/error.log


                <IfModule mod_ssl.c>
                SSLEngine on
                SSLProtocol All -SSLv2 -SSLv3
                SSLCertificateFile /path/to/your/cert/owncloud.knallimall.org.crt
                SSLCertificateKeyFile /path/to/your/key/owncloud.knallimall.org.key
                </IfModule>

                <Directory /var/www/owncloud.knallimall.org/web>
                                # Clear PHP settings of this website
                                <FilesMatch ".+\.ph(p[345]?|t|tml)$">
                                                SetHandler None
                                </FilesMatch>
                                Options +FollowSymLinks
                                AllowOverride All
                                                                Order allow,deny
                                Allow from all
                                                </Directory>
                <Directory /var/www/clients/client1/web15/web>
                                # Clear PHP settings of this website
                                <FilesMatch ".+\.ph(p[345]?|t|tml)$">
                                                SetHandler None
                                </FilesMatch>
                                Options +FollowSymLinks
                                AllowOverride All
                                                                Order allow,deny
                                Allow from all
                                                </Directory>




                # mod_php enabled
                AddType application/x-httpd-php .php .php3 .php4 .php5
                php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@owncloud.knallimall.org"
                php_admin_value upload_tmp_dir /var/www/clients/client1/web15/tmp
                php_admin_value session.save_path /var/www/clients/client1/web15/tmp
        # PHPIniDir /var/www/conf/web15
                php_admin_value open_basedir none


                # add support for apache mpm_itk
                <IfModule mpm_itk_module>
                        AssignUserId web15 client1
                </IfModule>

                <IfModule mod_dav_fs.c>
                # Do not execute PHP files in webdav directory
                        <Directory /var/www/clients/client1/web15/webdav>
                                <ifModule mod_security2.c>
                                        SecRuleRemoveById 960015
                                        SecRuleRemoveById 960032
                                </ifModule>
                                <FilesMatch "\.ph(p3?|tml)$">
                                        SetHandler None
                                </FilesMatch>
                        </Directory>
                        DavLockDB /var/www/clients/client1/web15/tmp/DavLock
                        # DO NOT REMOVE THE COMMENTS!
                        # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
                        # WEBDAV END
                </IfModule>


</VirtualHost>
owncloud/hosts.txt · Last modified: 2015/10/05 10:34 by admin