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

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