[Owncloud] Reverse Proxy with Apache

maex dev at mbn-cloud.de
Tue Feb 19 19:57:26 UTC 2013


hi have you tried

RewriteRule ^/owncloud(.*)$ http://internalserver.local/owncloud/$1 [L,P]

the match part  of the rule without ending slash.

so the ruile should macht at ../owncloud/ and ../owncloud too.

Matthias

On 19.02.2013 10:38, Tobias Brunner wrote:
> Hi,
>
> I'd like to configure a reverse proxy for ownCloud.
> OC is running on an internal server, not accessible over the internet:
> http://internalserver.local/owncloud. Therefore I've created the
> following Apache rewrite rule:
>
> RewriteRule ^/owncloud/(.*)$ http://internalserver.local/owncloud/$1
> [L,P]
>
> This works well if I use the URL http://externalserver.tld/owncloud/
> but not for http://externalserver.tld/owncloud (without the ending
> slash). Does anyone have an advice how to create a rewrite rule which
> also works without an ending slash?
>
> Cheers,
> Tobias
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>




More information about the Owncloud mailing list