static images 404 on Windows

Igor Sysoev is at rambler-co.ru
Tue May 12 11:18:24 MSD 2009


On Tue, May 12, 2009 at 12:16:25AM -0700, Chris Cortese wrote:

> thanks...
> 
> it seems for me I just cannot trigger anything in that block.
> 
> Anybody see anything wrong?
> 
> Can there be a good way to debug which location directive is processing??
> 
>  location ~ (jpg|jpeg|gif|png)$ {
>    root c:/cygwin/home/Chris/www/live/jobsite/trunk/html/public;
> #anything -- never gets here
>  }

Only debug log:

./configure --with-debug ...
error_log  /path/to/log  debug;

You will see

test location ...
test location ...
test location ...
using location ...

> Igor Sysoev wrote:
> >On Mon, May 11, 2009 at 09:36:22PM -0700, Chris Cortese wrote:
> >
> >  
> >>thanks, I thought about that but the root path is working fine for the 
> >>.php ... just not the /public/css, /public/images, /public/js ...
> >>    
> >
> > location ~ (jpg|jpeg|gif|png)$ {
> >    root c:/cygwin/home/Chris/www/live/jobsite/trunk/html/public;
> > }
> >
> >If php is cygwin application it requires cygwin style paths "/cygwin/...",
> >Native applications require usual win32 paths: "c:/cygwin/...".
> >
> >  
> >>raptium wrote:
> >>    
> >>>>Note that I have web source under /cygwin for my convenience only but I 
> >>>>am
> >>>>not using any cygwin components in my stack, all native Windows 
> >>>>components.
> >>>>   
> >>>>        
> >>> 
> >>>      
> >>>>root /cygwin/home/Chris/www/live/jobsite/trunk/html/public;
> >>>>index index.php index.html;
> >>>>   
> >>>>        
> >>>Since you are not using cygwin, I don't think
> >>>/cygwin/home/Chris/www/live/jobsite/trunk/html/public is a valid path
> >>>on windows, maybe you should change it to c:/cygwin... ?
> >>>
> >>> 
> >>>      
> >
> >  
> 

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list