UrlToolkit {
ToolkitID = ownCloud
Match ^/data DenyAccess
}
VirtualHost {
Hostname = www.example.com, example.com
WebsiteRoot = /var/www/frontpage
EnforceFirstHostname = yes
RequireTLS = yes,15552000
########################################
###live###
# StartFile = index.html
###backup###
# StartFile = backup.html
###construction###
StartFile = closed.html
########################################
Alias = /.well-known/acme-challenge:/var/www/hiawatha/.well-known/acme-challenge
#ReverseProxy !^/.well-known/ http://81.4.121.132:80 keep-alive
TLScertFile = /etc/hiawatha/ssl/XXXX.pem
#UseGZfile = yes
CustomHeader = X-Frame-Options: sameorigin
CustomHeader = Vary: Accept-Encoding
RandomHeader = 64
PreventXSS = yes
PreventCSRF = yes
PreventSQLi = yes
}
##OwnCloud
VirtualHost {
Hostname = www.example.com, example.com
WebsiteRoot = /usr/share/webapps/owncloud
RequireTLS = yes,15552000
StartFile = index.html
Alias = /cloud:/usr/share/webapps/owncloud
#Setenv HOME = /usr/share/webapps/owncloud
#Setenv HTTP_HOME = /usr/share/webapps/owncloud
#UseGZfile = yes
CustomHeader = X-Frame-Options: sameorigin
CustomHeader = Vary: Accept-Encoding
RandomHeader = 64
PreventXSS = yes
PreventCSRF = yes
PreventSQLi = yes
UseFastCGI = PHP7
TimeForCGI = 15
WebDAVapp = yes
FollowSymlinks = yes
AllowDotFiles = yes
EnablePathInfo = yes
UseToolkit = ownCloud
}
VirtualHost {
Hostname = www.example.com
WebsiteRoot = /var/www/frontpage
...
Alias = /cloud:/usr/share/webapps/owncloud
UseDirectory = owncloud
}
Directory {
DirectoryID = owncloud
Path = /cloud
StartFile = index.php
}
VirtualHost {
Hostname = oc9.hanscees.net
WebsiteRoot = /usr/share/owncloud
AccessLogfile = /var/www/oc9/logs/access.log
ErrorLogfile = /var/www/oc9/logs/error.log
TimeForCGI = 5
UseFastCGI = PHP5
UseToolkit = joomla
StartFile = index.php
WebDAVapp = yes
# UseDirectory = static, files
}
EnablePathInfo = yes