DocumentRoot /home/owncloud/httpdocs ServerName owncloud.yourdomain.pl ServerAdmin youremail@gmail.com Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;" SSLEngine On SSLCertificateFile /etc/apache2/ssl/certs/server.crt SSLCertificateKeyFile /etc/apache2/ssl/private/server.key SSLCertificateChainFile /etc/apache2/ssl/certs/chain.crt ErrorLog /home/owncloud/logs/ssl_error.log CustomLog /home/owncloud/logs/ssl_access.log combined Alias /owncloud "/home/owncloud/httpdocs/" AddType application/x-httpd-php .php .php3 .php4 .inc DirectoryIndex index.php index.php3 index.html Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted #Require all denied #Require ip 10.9.5 Dav off SetEnv HOME /home/owncloud/httpdocs SetEnv HTTP_HOME /home/owncloud/httpdocs DocumentRoot /home/owncloud/httpdocs ServerName owncloud.yourdomain.pl ServerAdmin youremail@gmail.com Redirect permanent / https://owncloud.uwb.edu.pl ErrorLog /home/owncloud/logs/error.log CustomLog /home/owncloud/logs/access.log combined AddType application/x-httpd-php .php .php3 .php4 .inc DirectoryIndex index.php index.php3 index.html Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted #Require all granted #Require not ip 212 #Require all denied #Require ip 10.9.5