[om-qa] OwnCloud and subdomain - Info !

Blackcrack blackcrack at blackysgate.de
Sun Jan 24 01:29:25 EST 2016


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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.openmandriva.org/pipermail/om-qa_ml.openmandriva.org/attachments/20160124/9ee38808/attachment.html>


More information about the OM-QA mailing list