Please if it is need to know, copy&past it in an otd :)
and maybe in the wiki ! ;)

Http to Https , owncloud as Subfolder in Apache
this is need by OwnCloud where is running as "www.your.dom/subfolder"
and not as "Subdomain.your.dom" .

edit the .htaccess from /local/to/owncloud/.htaccess

past under
# Version: 8.2.2 this :

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^\/owncloud
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


and if you need other folder behind on it, there owncloud and morehidden folder :

  RewriteEngine On
  RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^\/owncloud|\/morehidden
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

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 .
&
in/on OpenMandriva under /etc/httpd/conf/webapps.d/owncloud.conf add entry :

Header always set Strict-Transport-Security "max-age=31556926; includeSubDomains; preload"

on :
/etc/httpd/conf/webapps.d/owncloud.conf
-------------------------------------------------------------------------------
# owncloud configuration
Alias /owncloud /usr/share/owncloud
<Directory /usr/share/owncloud>
    DirectoryIndex index.html index.php
    AllowOverride All
    Options FollowSymlinks
    Require all granted
Header always set Strict-Transport-Security "max-age=31556926; includeSubDomains; preload"
</Directory>
-------------------------------------------------------------------------------

therewith works Ownclowd clean and fast :)
_______________________________________________
OM-General mailing list
[email protected]
http://ml.openmandriva.org/mailman/listinfo/om-general_ml.openmandriva.org

Reply via email to