Re: Can I use lighttpd/nginx for webdav but have updated disk usage statistics for mogile?

2008-04-05 Thread Timu EREN
Hi all,
i test this config with nginx instead perlbal and works with fine..
if you want to use nginx for perlbal you should use nginx version = 
0.6.27  ...



Pazar 16 Mart 2008 tarihinde, Timu EREN şunları yazmıştı: 
   Hi,
 Maybe you can use this nginx config, i dont test yet, if you can test you
 should write private or public e-mail for works or not,

 location / {
 proxy_pass  http://tracker;

 # tracker should return
 #  X-Accel-Redirect: /reproxy
 #  x-reproxy-url: http://host/new/url
 }

 location = /reproxy {
 internal;

 set$reproxy  $upstream_http_x_reproxy_url;
 proxy_pass   $reproxy;

 resolver 127.0.0.1;
 }

 Pazar 16 Mart 2008 tarihinde, [EMAIL PROTECTED] şunları yazmıştı:
  Thank you very much for detailed infos, I will test it in next weeks.
  Btw. can nginx handle also role of perlbal or its reproxy features are
  not so advanced to do transparent reproxy? I was going trough nginx
  manual but couldnt find anything like this.
 
  Goodwill
  __
 
  You could set server=none option /etc/mogilefs/mogstored.conf to use
 
  mogstored for disk usage info collecting only. We have sucessfully used
  Nginx as WebDAV backend.
 
  Here is our testing mogstored config file
   (/etc/mogilefs/mogstored.conf): mgmtlisten=0.0.0.0:7501
   docroot=/var/lib/mogdata/ server=none
  Here is our Nginx testing config file
   (/usr/local/nginx/conf/nginx.conf):
  
  user nobody; worker_processes 5; events { worker_connections 1024; }
   http
 
  { include conf/mime.types; default_type application/octet-stream;
  sendfile on; keepalive_timeout 0; tcp_nodelay on; client_max_body_size
  100M; server { listen 7500; server_name localhost; charset utf-8;
  location / { root /var/lib/mogdata/; dav_methods put delete mkcol copy
  move; dav_access user:rw group:rw all:r; } error_page 500 502 503 504
  /50x.html; location /50x.html { root html; } } }
 
  [EMAIL PROTECTED] wrote: Do I need to upload all files to mogile over
 
  mogstored or I can do puts/gets over lighttpd/nginx and just keep
  mogstored running on background to collect disk usage infos? I know there
  is support for lighttpd in mogstored, but how could I use nginx instead?
  Are there any disadvantages of such setup? Goodwill



-- 
Saygılar  İyi çalışmalar
Timu EREN (a.k.a selam)


signature.asc
Description: This is a digitally signed message part.


Re: test-write and MKCOL

2008-04-05 Thread Ask Bjørn Hansen


On Apr 5, 2008, at 11:51 AM, Timu EREN wrote:

2008/04/05 21:16:00 [error] 11629#0: *27 MKCOL can create a  
collection only,
client: 10.0.0.3, server: mogilestorage, request: MKCOL /dev1/test- 
write

HTTP/1.0

and i looking in mogileFS source code i see this,
$dev-create_directory(/dev$devid/test-write);

and nginx is say no end with slash, ok this is not a directory   
and return

error,



According to the RFC it seems like it's OK (if not strictly optimal)  
to omit the trailing /.


However I changed the code (r1166) to always include it by changing  
the create_directory method.



 - ask

--
http://develooper.com/ - http://askask.com/