Re: [users@httpd] mod_proxy and subversion - Long

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/25/06, Jim Gifford <maillist@xxxxxxxxx> wrote:
Joshua Slive wrote:
> On 5/25/06, Jim Gifford <maillist@xxxxxxxxx> wrote:
>
> I haven't checked the code, but I doubt <Limit> can be used in that
> way.  It works only for auth directives.
>
> You can, however, accomplish this by using the proxy [P] flag of
> mod_rewrite.


Joshua, would you mind providing me an example?

Leave the existing <Limit> section, but take out the <LimitExcept>
section and put this outside the <Location> section:

RewriteEngine On
RewriteCond %{REQUEST_METHOD} !^(GET|PROPFIND|OPTIONS|REPORT)$
RewriteRule /svn/repos(.*) http://svn.cross-lfs.org/svn/repos$1 [P]
ProxyPassReverse /svn/repos http://svn.cross-lfs.org/svn/repos

Use the RewriteLog to debug when you run into problems.

But you may want to check on the subversion lists how much luck people
really have doing this kind of reverse proxying.  There may be
hard-coded hostnames inside the xml returned by mod_dav_svn that
ProxyPassReverse will not rerwrite.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux