[Gllug] Apache URL matching directives, fall through
Alex Smith
alex at alexsmith.org
Wed Sep 1 20:27:35 UTC 2010
On Wed, Sep 01, 2010 at 09:25:02PM +0100, Richard Lewis wrote:
> At Wed, 11 Aug 2010 15:06:04 +0100,
> Richard Lewis wrote:
> >
> > Maybe I'm thinking of Apache directives too much like a collection of
> > cases in a switch structure?
> >
> So I find myself battling with this misconception again. This time I
> have ProxyPass and DAV svn standing on each other's toes. One server
> configuration with directives:
>
> <Location /repos/>
> DAV svn
> ...
> </Location>
>
> <Location />
> ProxyPass http://localhost:8081/
> ...
> </Location>
>
> And, of course, what happens is that requests for /repos/ get handled
> by the server running on 8081 which returns 404.
http://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass
[[[
The ! directive is useful in situations where you don't want to
reverse-proxy a subdirectory, e.g.
ProxyPass /mirror/foo/i !
ProxyPass /mirror/foo http://backend.example.com
]]]
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list