I have a Subdomain that should host a oC share. For the user to only show the Subdomain instead of the URI I’m trying to use the Apache RewriteEngine. For some reason the index.php file is ALWAYS redirecting to the login URI. So my question is: Is there a way to rewrite to a oC share with Apache? My current VirtualHost:
<VirtualHost *:443>
Servername cloud.example.com
ServerAlias inbox.example.com
DocumentRoot /var/www/owncloud
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{HTTP_HOST} =inbox.example.com
RewriteCond %{REQUEST_URI} =/
RewriteRule . /index.php/s/inbox [PT]
SSLEngine on
SSLCertificateFile /path/to/fullchain.pem
SSLCertificateKeyFile /path/to/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
</VirtualHost>
What would work is using a external Redirect with the R flag. By that the URI is being shown tho…
Thanks a lot for any help!