ProxyPass /~ global rule doesn"t work
am 08.08.2007 04:35:31 von SiuHin
I am trying setup a reverse proxy rule to proxy over all user home
directories to another server, while
ProxyPass /~myhome/ http://www.xxx.com/~myhome/
works, the following rule doesn't work,
ProxyPass /~ http://www.xxx.com/~
I've also tried the following but still doesn't work
ProxyPass /~*/ http://www.xxx.com/~$1/
I am wondering what's the different here. Why the tilde rule with a
fixed user id works, but won't work as wildcard. As we have many user
accounts, I will need a global rule that work. Any simple solution or
workaround?
Thanks.
Re: ProxyPass /~ global rule doesn"t work
am 08.08.2007 10:12:46 von phantom
"SiuHin" wrote in message
news:1186540531.738394.309280@w3g2000hsg.googlegroups.com...
>I am trying setup a reverse proxy rule to proxy over all user home
> directories to another server, while
>
> ProxyPass /~myhome/ http://www.xxx.com/~myhome/
>
> works, the following rule doesn't work,
>
> ProxyPass /~ http://www.xxx.com/~
>
> I've also tried the following but still doesn't work
>
> ProxyPass /~*/ http://www.xxx.com/~$1/
even if ProxyPass could handle regex paths, this should probably be
ProxyPass /(~.*)/ http://www.xxx.com/$1/
> I am wondering what's the different here. Why the tilde rule with a
> fixed user id works, but won't work as wildcard. As we have many user
> accounts, I will need a global rule that work. Any simple solution or
> workaround?
>
> Thanks.
It looks like ProxyPass expects the first argument to be a directory...
ProxyPass /~myhome http://www.xxx.com/~myhome
will proxy /~myhome, /~myhome/ and /~myhome/other but not /~myhomeother
so that will be why ProxyPass /~ ... doesn't work.
does it need to be proxied or could you just redirect the requests? -
UserDir http://www.xxx.com/~*