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
--
Xavier Fustero Benavent
Barcelona Supercomputing Center -
Centro Nacional de Supercomputación (BSC-CNS)
Tel: +34 93 4054224
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup