Nevermind, just bodged a bit... Took some inspiration
here,
here and, to a far less extent,
here.
So, I created a rewrite rule using
Proxy flag, so it went like this:
RewriteRule "^/ocs(?:\/)?(.*)?" http://teste/$1 [P,L]
Then, I combined it with other three rules because I needed it to work only with HTTPS.
RewriteCond "%{SERVER_PORT}" ^443$
RewriteRule "^/ocs(?:\/)?(.*)?" http://teste/$1 [P,L]
RewriteCond "%{SERVER_PROTOCOL}" "!^HTTPS$"
RewriteRule "^/ocs(?:\/)?(.*)?" "https://server.example.org/ocs/$1" [R,L]
Only a trivia, tho...
Thanks,
Att.,
-trp
P.S.: I'm really sorry about my English, today... I got a little sleepy and tired today trying to get the server to run the way I wanted it to...