2013-01-08 18:58, Robert Segall skrev:
On Mon, 2013-01-07 at 16:11 +0100, Alan McGinlay wrote:
Hi,
I am trying to find a good way to redirect example.com/~username to a
specific backend (which will run apache and nfs mounted home
directories) in order to keep users public_html and nfs mounts off of
our main webserver.
We also have multiple domains pointing at the same backend but I would
like the userdirs to only be available via one of them so that
example.com/~bob works but otherexample.com/~bob does not.
So far I have this:
Service
HeadRequire "^Host:\s*www.example.se.*"
URL "/~*"
BackEnd
Address userdirhost
Port 80
End
Emergency
Address localhost
Port 9090
End
End
Followed by:
Service
HeadRequire "^Host:\s*www.example.se.*"
BackEnd
Address standardbackend
Port 81
End
Emergency
Address localhost
Port 9090
End
End
However, although this allows the userdir to work, it also completely
breaks the second entry..
Any advice?
Thanks,
Alan
--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.
Rpleace your URL with "/~.*" and the in the header use " *" rather than
"\s".
Great! The fixed regex worked, thanks!
I didn't need to adjust the header though, what is the thought behind
using " *" rather than "\s"?
/Alan
--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.