We currently have a Turnkey appliance running with Debian and Apache2 for testing purposes.
The Apache config file looks like this:
ServerName localhost
<VirtualHost *:80>
UseCanonicalName Off
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/owncloud/
RewriteEngine On
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/owncloud/
</VirtualHost>
<Directory /usr/share/owncloud/>
Options +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
We have something installed in /var/www/html and want to redirect everything https://example.com/extras/* to /var/www/html. We tried to use Alias and it wasn't working, maybe we didn't apply it correctly.