0

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.

1
  • Edit the question to provide specific details about how it was not working- what happened in response to what action. Sep 9, 2016 at 22:59

1 Answer 1

0

You likely just need a block for the other directory you want to serve from, that is configured like the one you have for owncloud- along with the Alias directive that you likely used. This combination of Alias and Directory will permit apache to serve from that other directory for that http route.

DocumentRoot just provides a default mapping, think of it like

Alias / /filesystem/path

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .