16 messages in ru.sysoev.nginxRe: static images 404 on Windows
FromSent OnAttachments
Chris CorteseMay 9, 2009 1:25 am 
"坏人"May 11, 2009 8:31 pm 
Chris CorteseMay 11, 2009 8:50 pm 
"凌晨"May 11, 2009 8:57 pm 
raptiumMay 11, 2009 9:03 pm 
Chris CorteseMay 11, 2009 9:17 pm 
raptiumMay 11, 2009 9:29 pm 
Chris CorteseMay 11, 2009 9:35 pm 
Igor SysoevMay 11, 2009 11:12 pm 
Chris CorteseMay 12, 2009 12:16 am 
Igor SysoevMay 12, 2009 12:18 am 
"坏人"May 12, 2009 12:56 am 
Igor SysoevMay 12, 2009 1:15 am 
kevinMay 12, 2009 2:42 am 
Chris CorteseMay 14, 2009 2:58 pm 
Igor SysoevMay 14, 2009 10:10 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: static images 404 on WindowsActions...
From:Igor Sysoev (is@rambler-co.ru)
Date:May 14, 2009 10:10:19 pm
List:ru.sysoev.nginx

On Thu, May 14, 2009 at 02:58:44PM -0700, Chris Cortese wrote:

Hi,

Problem is I'm only having the problem on Windows--where I'm using the prebuilt Windows binary.

Is there any way to get a current Windows binary that is built with debug on?

Sorry, I've missed that we talking about nginx/Windows. It's already built --with-debug.

Igor Sysoev wrote:

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... ?