Thanks Frank.

Yes, I can now get the following to work:

    <Location / >
     ProxyPass http://localhost:9023/
     ProxyPassReverse  /
    <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT
MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>
          Order Deny,Allow
          Allow from all
      Satisfy Any
    </Limit>
    </Location>

However, I can't get something like the following to work:

    <Location /dav >
     ProxyPass http://localhost:9023/dav
     ProxyPassReverse  /dav
    <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT
MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>
          Order Deny,Allow
          Allow from all
      Satisfy Any
    </Limit>
    </Location>

Was curious if you were able to get something like this to work ... it's
not a huge deal (just a bit of a pain) as I would need to create a
separate virtual host to map to each webdav instance.  I would prefer to
base this on a path, but perhaps that just isn't possible.

Darin.

-----Original Message-----
From: Frank Sanders [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 18, 2007 12:42 AM
To: McBeath, Darin W (ELS-STL); Discuss; General Mark Logic Developer
Discussion; Mike Sokolov
Subject: RE: [MarkLogic Dev General] Accessing a MarkLogicWebDav
Serverbehindan Apache Web Server

Darin,

        This may be a shot in the dark. But, in the limited testing I've
been able to do and in some of the reading I've done, it says that there
can be a problem when the url's don't match as they do not in your case:

    ProxyPass /webdav http://localhost:9021
    ProxyPassReverse  /webdav http://localhost:9021

It seems as though it's recommended that your Proxy statements would
look like either of these two:

    ProxyPass /webdav http://localhost:9021/webdav
    ProxyPassReverse  /webdav http://localhost:9021/webdav

    ProxyPass / http://localhost:9021
    ProxyPassReverse  / http://localhost:9021

I've managed to get it to work on apache 2.2 (should be very similar for
2.0.55) with the following:

    ProxyPass / http://localhost:7003/
<Location / >
    ProxyPassReverse /
   <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT CHECKOUT
MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>
          Order Deny,Allow
          Allow from all
      Satisfy Any
    </Limit>
</Location>

I got the information regarding problems where the paths are different
of the proxying machine, and the webdav host from the site mentioned by
Mike Sokolov.

http://silmor.de/49


Hope this helps.

-fs

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of McBeath,
Darin W (ELS-STL)
Sent: Friday, December 14, 2007 4:29 PM
To: Mike Sokolov; General Mark Logic Developer Discussion
Subject: RE: [MarkLogic Dev General] Accessing a MarkLogicWebDav
Serverbehindan Apache Web Server

Yeah, I had tried this approach with zero luck.  Did you have any luck?

Below is my latest approach ... not sure if it will ever work but it
seems to have the most promise.  Essentially, I'm just trying to 'copy'
the HTTP headers inserted by the MarkLogic server back to the client.
While, this still doesn't truly work, using this approach I can at least
connect to the MarkLogic WebDav server (via Apache) and can see the
first level of folders contained in the root directory.  But, I get an
error whenever I try to navigate into one of these folders.  

I ended up with this approach by running a tcptrace between my WebDav
client and Apache and another one between Apache and the MarkLogic
WebDav Server.  I then looked at what HTTP headers were returned by
MarkLogic but were not being returned by Apache.

    LoadModule headers_module modules/mod_headers.so

    ProxyPass /webdav http://localhost:9021
    ProxyPassReverse  /webdav http://localhost:9021
    <Location /webdav >
        Header add MS-Author-Via DAV
        Header append Allow
OPTIONS,GET,HEAD,POST,DELETE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK,PU
T     
        Header add DAV  1,2
        Header add KEEP-ALIVE timeout=1
    </Location>

Surely, there has to be an easier way ...

Darin.

-----Original Message-----
From: Mike Sokolov [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 14, 2007 2:35 PM
To: General Mark Logic Developer Discussion
Cc: McBeath, Darin W (ELS-STL)
Subject: Re: [MarkLogic Dev General] Accessing a MarkLogic WebDav
Serverbehindan Apache Web Server

Here is a page that might be helpful: http://silmor.de/49
They show an example that supposedly works (with subversion, which uses 
dav).  I think maybe the key is:

ProxyPass /svn/ http://realsvnserver/svn/
<Location /svn/ >
        ProxyPassReverse /svn/
        <Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT
CHECKOUT
               MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>
          Order Deny,Allow
          Allow from all
          Satisfy Any
        </Limit>
</Location>



McBeath, Darin W (ELS-STL) wrote:
> Ok, I have installed and configured the mod_dav module but still
having
> no luck.
>
> So, out of curiosity, has anyone ever gotten something like this to
work
> and if so, would you care to share the details with those who are
> becoming very frustrated :-)
>
> Thanks.
>
> Darin.
>
> -----Original Message-----
> From: McBeath, Darin W (ELS-STL) 
> Sent: Thursday, December 13, 2007 6:08 PM
> To: '[email protected]'
> Subject: Re: [MarkLogic Dev General] Accessing a MarkLogic WebDav
> Serverbehindan Apache Web Server
>
> I didn't think that was necessary as apache was just proxying to the
> webdav server.  But, perhaps that was a bad assumption. Perhaps, this
is
> needed in order to get apache to accept the propfind verb. I will give
> that a go.  In hindsight, I can see that might make sense.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> <[EMAIL PROTECTED]>
> To: 'General Mark Logic Developer Discussion'
> <[email protected]>
> Sent: Thu Dec 13 15:49:39 2007
> Subject: RE: [MarkLogic Dev General] Accessing a MarkLogic WebDav
> Serverbehindan Apache Web Server
>
> Just a total guess - do you have the mod_dav module installed and
> configured?
>
>  
>
> ________________________________
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of McBeath,
> Darin W (ELS-STL)
> Sent: Thursday, December 13, 2007 4:17 PM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] Accessing a MarkLogic WebDav Server
> behindan Apache Web Server
>
>  
>
> Ok, I searched the discussion group for an answer to this question,
but
> had little luck.  There was a discussion back in January 2007 ... but
no
> resolution ... the thread just stopped.
>
>  
>
> So, I'm curious if anyone has successfully accessed and MarkLogic
WebDav
> Server via an Apache Web Server.  I do this all of the time when
> accessing a MarkLogic HTTP Server, but now I have a need to do this
for
> a WebDav Server.  I have tried all different variants within Apache
> (RewriteRules, ProxyPass, etc.) but have had little luck.  As far as I
> can tell the Apache Web Server is issuing a 405 (method not supported)
> on the PROPFIND.   It doesn't appear the request is ever getting to
> MarkLogic.  So, I would agree that this is likely not a MarkLogic
issue
> but am just curious if anyone else on this list has encountered the
same
> problem and successfully configured Apache.  If I connect 'directly'
to
> the WebDav server (not going through Apache), then everything works
fine
> ... but, I don't want to open a bunch of holes in my firewall so that
is
> really not an option.
>
>  
>
>  For my WebDav client, I'm using the Windows Network Places Explorer.
>
>  
>
> Thanks.
>
>  
>
> Darin.
>
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>   
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to