Hi Xavier,

We did something similar to your first bit. In that we prefixed our urls with webdav instead of the usuall www. I.e.

RewriteCond %{HTTP_HOST} ^webdav\.(.*)$

The difference this meant for users was that the paths all stayed the same as if they were just browsing. Often the client program (e.g. contribute, dreamweaver) has this as a separate field for path.

But your way would work great also. Glad its all working.

Cheers,
Pete
Xavier Fustero wrote:
Hi Peter,

your indication was right but I guess there was something else. I can't remember because I spent lot of time changing things and looking at it but at the end it is working fine.

I have a virtual server: vhost1 which redirects traffic to https for my normal plone content and another redirect to use the webdav protocol

vhost1:

RewriteCond %{REQUEST_URI} ^/dav [NC]
RewriteRule ^/dav https://my_plone_site/dav [L,R=301]
RewriteRule ^(.*)$ https://my_plone_site [L,R=301]

then, in the vhost-secure, I have setup the following lines:

vhost-secure:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/dav [NC]
RewriteRule ^/dav/(.*) http://localhost:8070/VirtualHostBase/https/my_plone_site:443/Application_name/VirtualHostRoot/_vh_dav/$1 [P,L] RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/https/my_plone_site:443/Application_name/VirtualHostRoot/$1 [P,l]

I could use webdav through Linux with a command line program called cadaver and with two different browsers:
shell> cadaver  https://my_plone_site/dav
or nautilus/konqueror-> webdavs://my_plone_site

I will look for some Windows clients now. Anyway, the config/redirection job is done!

Thanks,
Xavi

Hi Xavier,

If you are running https (port 443) you need to change http to https i.e

RewriteCond %{HTTP_HOST} ^my_virtual_host_name(.*) [NC]
RewriteRule ^/(.*) http://localhost:'port_number_webdav'/VirtualHostBase/https/'my_virtual_host_name':443/APPS/VirtualHostRoot/$1 [P,L]

Otherwise you would need to change port 80.

RewriteCond %{HTTP_HOST} ^my_virtual_host_name(.*) [NC]
RewriteRule ^/(.*) http://localhost:'port_number_webdav'/VirtualHostBase/http/'my_virtual_host_name':80/APPS/VirtualHostRoot/$1 [P,L]

Those two things will need to match up otherwise the VirtualHostMonter will not rewrite the rules correctly.

There could be some other things also but at least that to start with.

Cheers,
Pete

RewriteCond %{REQUEST_URI} ^/dav [NC]
RewriteRule ^/dav/(.*) http://localhost:8070/VirtualHostBase/https/webdoc.bsc.es:443/BSC/VirtualHostRoot/_vh_dav/$1 [P,L]

Xavier Fustero wrote:
Hi,

I have some users interested on uploading several files in once. I have played a little bit with the webdav and ftp features. They are working fine but our security guy don't let us to open those ports and use it without being encrypted.

I have tried two options but it doesn't seem to work for me.

i) I tried to stunnel the ftp or webdav but it hanged. I tried to stunnel any other thing like normal port 80 and it works but I couldn't make it for those. ii) I have created a virtual host for the webdav and created a RewriteRule to redirect it but I honestly don't know exactly where to redirect it.
If my application is running an instance called APPS

RewriteCond %{HTTP_HOST} ^my_virtual_host_name(.*) [NC]
RewriteRule ^/(.*) http://localhost:'port_number_webdav'/VirtualHostBase/http/'my_virtual_host_name':443/APPS/VirtualHostRoot/$1 [P,L]

Our plone is redirected to a https. I am not sure if I need something else at then end. I have tried to add /_vh _webdav /$1 as some people do but I don't know what it is. Anyway, it doesn't seem to work any combination I did.

Our software is:
Zope-2.8.6
Plone-2.1.2

Thanks a lot,
Xavi



_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to