Hi @all,
sorry for the off-topic question but maybe there is a nginx expert on this
list. Currently I run a squid service acting as a reverse proxy with a url
rewrite script in place. Here I do rewrites like this:
# Redirect owncloud service to /owncloud if needed
if (($url =~ /https:\/\/own\.example\.local\//i) &&
($url !~ /https:\/\/own\.example\.local\/(owncloud|favicon.ico)\/.*/i))
{
$url = "https://own.example.local/owncloud/\n"; $cflag = 1;
}
So every request that is not /owncloud/* or /favicon.ico will be
redirected to /owncloud. Now I tried to replace squid with nginx which work
fine except the rewrite rules. Does anyone know how to define a rewrite
rule like the one from the url rewrite script within nginx?
Regards Thomas
--
Linux ... enjoy the ride!