Lighttpd and nonexistent directories
mike
mike503 at gmail.com
Fri Jun 20 21:45:22 UTC 2008
switch to nginx :) this works great for me :p
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 0;
tcp_nodelay on;
client_max_body_size 251m;
client_body_temp_path /var/mogdata/.tmp;
server_tokens off;
server {
listen 7500;
server_name localhost;
charset utf-8;
location / {
root /var/mogdata/;
dav_methods put delete mkcol copy move;
dav_access user:rw group:rw all:r;
# not sure if this is needed
create_full_put_path on;
}
# these are not right
error_page 500 502 503 504 /50x.html;
location /50x.html {
root html;
}
}
}
On 6/20/08, Daniel Leaberry <dleaberry at footnote.com> wrote:
> We're testing Mogile here and just ran into our first little snag. I'm
> running mogstored using lighttpd and the first 999 files we test inserted
> worked fine. Any file over 999 gives a 403 error.
>
> I've traced this to the directory hashing scheme that mogile uses
> (0/000/000) and the new directory does not exist (0/000/001).
>
> 'dev_count' => '2',
> 'devid_2' => '45',
> 'path_1' =>
> 'http://192.168.101.243:7500/dev39/0/000/001/0000001007.fid',
> 'fid' => '1007',
> 'devid_1' => '39',
> 'path_2' =>
> 'http://192.168.101.244:7500/dev45/0/000/001/0000001007.fid'
>
> How can I get mogile to create the directory if it doesn't exist? I found a
> lighttpd patch posted here in 2006 that purports to accomplish this, is the
> patch the correct solution?
>
> Thanks,
> Daniel
>
More information about the mogilefs
mailing list