1 Oct 2008 13:06
WebDav Component
Hi,
I'm new to eZ
Components, and are trying to get a simple WebDav Server serving up files from
the file system.
Just wondering if
there are any more detailed examples for WebDav? - I tried working through http://ezcomponents.org/docs/api/trunk/introduction_Webdav.html but
think I've missed something as the page just hangs when I try to go to
it.
I put this code
/var/www/html/webdavserver.php :
$server =
ezcWebdavServer::getInstance();
$server->configurations->pathFactory = new ezcWebdavBasicPathFactory( 'http://xyz.abc.com/backend/' ); - also tried with this line commented
$backend = new ezcWebdavFileBackend(dirname( __FILE__ ) . '/backend');
$server->handle( $backend );
$server->configurations->pathFactory = new ezcWebdavBasicPathFactory( 'http://xyz.abc.com/backend/' ); - also tried with this line commented
$backend = new ezcWebdavFileBackend(dirname( __FILE__ ) . '/backend');
$server->handle( $backend );
I put this in
Apache's httpd.conf:
#Rewrite every
request to webdavserver.php
RewriteRule ^(.*)
/var/www/html/webdavserver.php
When I go to
'http://xyz.abc.com/backend/ it just hangs. I know the request is
executing webdavserver.php .
Have I gone about
this the correct way or am I missing something? Are there any other
examples?
Thanks,
Michael
<div> <div dir="ltr" align="left"><span class="484194810-01102008">Hi, </span></div> <div><span class="484194810-01102008">I'm new to eZ Components, and are trying to get a simple WebDav Server serving up files from the file system.</span></div> <div><span class="484194810-01102008">Just wondering if there are any more detailed examples for WebDav? - I tried working through <a href="http://ezcomponents.org/docs/api/trunk/introduction_Webdav.html">http://ezcomponents.org/docs/api/trunk/introduction_Webdav.html</a> but think I've missed something as the page just hangs when I try to go to it.</span></div> <div> <span class="484194810-01102008"></span> </div> <div><span class="484194810-01102008">I put this code /var/www/html/webdavserver.php :</span></div> <div><span class="484194810-01102008">$server = ezcWebdavServer::getInstance(); <br>$server->configurations->pathFactory = new ezcWebdavBasicPathFactory( 'http://xyz.abc.com/backend/' ); - also tried with this line commented<br>$backend = new ezcWebdavFileBackend(dirname( __FILE__ ) . '/backend');<br>$server->handle( $backend ); </span></div> <div> <span class="484194810-01102008"></span> </div> <div><span class="484194810-01102008">I put this in Apache's httpd.conf:</span></div> <div><span class="484194810-01102008">#Rewrite every request to webdavserver.php</span></div> <div><span class="484194810-01102008">RewriteRule ^(.*) /var/www/html/webdavserver.php </span></div> <div> <span class="484194810-01102008"></span> </div> <div><span class="484194810-01102008">When I go to 'http://xyz.abc.com/backend/ it just hangs. I know the request is executing webdavserver.php .</span></div> <div> <span class="484194810-01102008"></span> </div> <div><span class="484194810-01102008">Have I gone about this the correct way or am I missing something? Are there any other examples?</span></div> <div> <span class="484194810-01102008"></span> </div> <div><span class="484194810-01102008">Thanks,</span></div> <div><span class="484194810-01102008">Michael</span></div> <div> <span class="484194810-01102008"></span> </div> </div>
RSS Feed