You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Igor Nemilentsev <tr...@gmail.com> on 2010/02/08 20:52:06 UTC
jackrabbit across Apache proxy
Hi.
I have a jackrabbit repository and can get a access as
http://some_address:8080/jackrabbit-webapp-2.0.0/repository/default
I want to reduce this long path and installed apache as proxy
ProxyRequests Off
ProxyPreserveHost on
RewriteEngine on
RewriteRule ^/files(.*) http://same_address:8080/jackrabbit-webapp-2.0.0/repository/default$1 [P]
RewriteRule ^/(.*) http://same_address:8080/$1 [L,P]
How I can go in the repository as http://same_address/files
Then I mounted the repository as network drive in Windows 7.
net use Z: "http://same_address/files" /USER:same same
Then I go to Z drive and can read and write files.
But if I want move or change name of file then I have error
Z:\Music Videos>move test test1
A device attached to the system is not functioning.
0 file(s) moved.
Z:\Music Videos>copy test test1
1 file(s) copied.
Z:\Music Videos>del test1
Why this behavior may be?
--
Nothing in life is to be feared. It is only to be understood.
Re: jackrabbit across Apache proxy
Posted by Igor Nemilentsev <tr...@gmail.com>.
On 10-02-2010, James Abley <ja...@gmail.com> wrote:
>On 9 February 2010 20:44, Igor Nemilentsev <tr...@gmail.com> wrote:
>I think you need to use
>Dav On
>in the apache httpd config [1]. I don't think various WebDav extension
>methods are supported by default when proxying.
>Cheers,
>James
>[1] http://httpd.apache.org/docs/2.2/mod/mod_dav.html#dav
This did not help me.
I have been helped with next solution:
I have added 2 string in httpd.conf
ProxyPreserveHost on
RequestHeader edit Destination http://same_host/files(.*) /jackrabbit-webapp-2.0.0/repository/default$1 early
--
Breeding rabbits is a hare raising experience.
Re: jackrabbit across Apache proxy
Posted by James Abley <ja...@gmail.com>.
On 9 February 2010 20:44, Igor Nemilentsev <tr...@gmail.com> wrote:
> On 09-02-2010, Igor Nemilentsev <tr...@gmail.com> wrote:
> >>> ProxyRequests Off
> >>> ProxyPreserveHost on
> >>> RewriteEngine on
> >>> RewriteRule ^/files(.*)
> http://same_address:8080/jackrabbit-webapp-2.0.0/repository/default$1 [P]
> >>> RewriteRule ^/(.*) http://same_address:8080/$1 [L,P]
> >I think so, but asked new isea.
> >Thanks for you, gave me a idea-
> I am more nearly to solution now.
> It is problem in 'Decision' in WebDab protocol.
> Can anyone give me a advise
> why it is different when ( PUT, GET, MOVE ) ?
> I do not know, Like to know. Why only when MOVE?
> I mean it is creating, deleting, copying - but not moving.
>
I think you need to use
Dav On
in the apache httpd config [1]. I don't think various WebDav extension
methods are supported by default when proxying.
Cheers,
James
[1] http://httpd.apache.org/docs/2.2/mod/mod_dav.html#dav
Re: jackrabbit across Apache proxy
Posted by Igor Nemilentsev <tr...@gmail.com>.
On 09-02-2010, Igor Nemilentsev <tr...@gmail.com> wrote:
>>> ProxyRequests Off
>>> ProxyPreserveHost on
>>> RewriteEngine on
>>> RewriteRule ^/files(.*) http://same_address:8080/jackrabbit-webapp-2.0.0/repository/default$1 [P]
>>> RewriteRule ^/(.*) http://same_address:8080/$1 [L,P]
>I think so, but asked new isea.
>Thanks for you, gave me a idea-
I am more nearly to solution now.
It is problem in 'Decision' in WebDab protocol.
Can anyone give me a advise
why it is different when ( PUT, GET, MOVE ) ?
I do not know, Like to know. Why only when MOVE?
I mean it is creating, deleting, copying - but not moving.
--
All things being equal, you are bound to lose.
Re: jackrabbit across Apache proxy
Posted by Igor Nemilentsev <tr...@gmail.com>.
On 09-02-2010, Alexander Klimetschek <ak...@day.com> wrote:
>On Mon, Feb 8, 2010 at 20:52, Igor Nemilentsev <tr...@gmail.com> wrote:
>> I have a jackrabbit repository and can get a access as
>> http://some_address:8080/jackrabbit-webapp-2.0.0/repository/default
>> ...
>> Then I mounted the repository as network drive in Windows 7.
>> net use Z: "http://same_address/files" /USER:same same
>>
>> Then I go to Z drive and can read and write files.
>> But if I want move or change name of file then I have error
>Did you test the windows mount with the long path? The copy/move
>errors could be a problem of windows built-in webdav client, which is
>known to be problematic.
The window mount with long pass
(http://some_address:8080/jackrabbit-webapp-2.0.0/repository/default)
is successful.
>> ProxyRequests Off
>> ProxyPreserveHost on
>> RewriteEngine on
>> RewriteRule ^/files(.*) http://same_address:8080/jackrabbit-webapp-2.0.0/repository/default$1 [P]
>> RewriteRule ^/(.*) http://same_address:8080/$1 [L,P]
I think so, but asked new isea.
Thanks for you, gave me a idea-
Re: jackrabbit across Apache proxy
Posted by Alexander Klimetschek <ak...@day.com>.
On Mon, Feb 8, 2010 at 20:52, Igor Nemilentsev <tr...@gmail.com> wrote:
> I have a jackrabbit repository and can get a access as
> http://some_address:8080/jackrabbit-webapp-2.0.0/repository/default
> ...
> Then I mounted the repository as network drive in Windows 7.
> net use Z: "http://same_address/files" /USER:same same
>
> Then I go to Z drive and can read and write files.
> But if I want move or change name of file then I have error
Did you test the windows mount with the long path? The copy/move
errors could be a problem of windows built-in webdav client, which is
known to be problematic.
> ProxyRequests Off
> ProxyPreserveHost on
> RewriteEngine on
> RewriteRule ^/files(.*) http://same_address:8080/jackrabbit-webapp-2.0.0/repository/default$1 [P]
> RewriteRule ^/(.*) http://same_address:8080/$1 [L,P]
Otherwise it could be that the rewrite rules need some additional
config to pass through all webdav methods, and not just standard http
methods (I am not a rewrite expert, just a guess).
Regards,
Alex
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com