On Thu, Jan 27, 2011 at 7:59 PM, René 'Necoro' Neumann <[email protected]> wrote: > Am 27.01.2011 23:53, schrieb Carlos Ríos Vera: >> Hey René, >> but then, I tried this: >> >> % spawn-fcgi -a 127.0.0.1 -p 9002 -- `which python` >> /home/lbfm/www/lbfm_web/index.py >> spawn-fcgi.c.197: child spawned successfully: PID: 32332 > > Is the index.py executable and has a shebang (i.e. is the first line > #!/usr/bin/python > or something similar)? > >> but when I try to visualizate the app via browser, it doesn't >> recognize the /static/, so the css/js/imgs doesn't appears, and I have >> already configured nginx for this: >> >> location /static/ { >> root /home/lbfm/www/lbfm_web/static; >> if (-f $request_filename){ >> rewrite ^/static/(.*)$ /static/$1 break; >> } >> } > > I do not know nginx configuration -- but from simple understanding, I > would guess, that e.g. /static/bla.css is mapped to > /home/lbfm/www/lbfm_web/static/static/blas.css, as you have included the > "/static/" already in the root. This mapping might not be the intended > thing :).
Oh, man, you were right.. Thanks. But it still weird that I got the error: : No such file or directory spawn-fcgi.c.218: child exited with: 127, Key has expired Thanks again René. -- http://crosvera.blogspot.com Carlos Ríos V. Estudiante de Ing. (E) en Computación e Informática. Universidad del Bío-Bío VIII Región, Chile Linux user number 425502 -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
