<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Please if it is need to know, copy&past it in an otd :)<br>
and maybe in the wiki ! ;)<br>
<br>
Http to Https , owncloud as Subfolder in Apache<br>
this is need by OwnCloud where is running as "<a
class="moz-txt-link-abbreviated"
href="http://www.your.dom/subfolder"><a class="moz-txt-link-abbreviated" href="http://www.your.dom/subfolder">www.your.dom/subfolder</a></a>" <br>
and not as "Subdomain.your.dom" .<br>
<br>
edit the .htaccess from /local/to/owncloud/.htaccess<br>
<br>
past under<br>
# Version: 8.2.2 this : <br>
<br>
RewriteEngine On<br>
RewriteCond %{HTTPS} off<br>
RewriteCond %{REQUEST_URI} ^\/owncloud<br>
RewriteRule (.*) <a class="moz-txt-link-freetext" href="https://%">https://%</a>{HTTP_HOST}%{REQUEST_URI}
<br>
<br>
<br>
and if you need other folder behind on it, there owncloud and
morehidden folder :<br>
<br>
RewriteEngine On<br>
RewriteCond %{HTTPS} off<br>
<font color="#ff6600">RewriteCond %{REQUEST_URI}</font> <font
color="#009900">^\/owncloud|\/morehidden</font><br>
RewriteRule (.*) <a class="moz-txt-link-freetext"
href="https://%">https://%</a>{HTTP_HOST}%<font color="#ff6600">{REQUEST_URI}</font><br>
<br>
the RewriteCond %{REQUEST_URI} can you add also for other subfolders
in apache before the other code comes . You can use this for your
homepage for use the Https for other subfolders . <br>
&<br>
in/on OpenMandriva under /etc/httpd/conf/webapps.d/owncloud.conf
add entry :<br>
<br>
Header always set Strict-Transport-Security "max-age=31556926;
includeSubDomains; preload"<br>
<br>
on :<br>
/etc/httpd/conf/webapps.d/owncloud.conf<br>
-------------------------------------------------------------------------------<br>
<small><small><font face="Consolas"># owncloud configuration<br>
Alias /owncloud /usr/share/owncloud<br>
<Directory /usr/share/owncloud><br>
DirectoryIndex index.html index.php<br>
AllowOverride All<br>
Options FollowSymlinks<br>
Require all granted<br>
Header always set Strict-Transport-Security
"max-age=31556926; includeSubDomains; preload"<br>
</Directory><br>
</font></small></small>-------------------------------------------------------------------------------<br>
<br>
therewith works Ownclowd clean and fast :)<br>
</body>
</html>