[Owncloud] Reverse Proxy with Apache

Tobias Brunner tobias at tobru.ch
Tue Feb 19 09:38:33 UTC 2013


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



More information about the Owncloud mailing list