Need to serve multiple directories/drives on windows
Edho P Arief
edhoprima at gmail.com
Tue Jun 16 22:07:36 MSD 2009
On Wed, Jun 17, 2009 at 1:01 AM, dwatrous<dwatrous at aptina.com> wrote:
> Thanks for the reply. This still isn't working. Here is my entire
> config file. As an initial test I've included only the C drive.
>
> worker_processes 1;
>
> events {
> worker_connections 1024;
> }
>
> http {
> include mime.types;
> default_type application/octet-stream;
> sendfile on;
> keepalive_timeout 65;
> server {
> listen 50000;
> server_name localhost;
>
> location /c {
> root c:/;
> }
>
> location / {
> root html;
> index index.html index.htm;
> }
>
> error_page 500 502 503 504 /50x.html;
> location = /50x.html {
> root html;
> }
>
> }
>
> }
>
> I've tried it with just C:/, with both C:/ and / as shown here and with
> all drives. The / location will always load, but the others won't.
> Here's what I get
> http://localhost:50000/ produces "Welcome to nginx!" with the log file
> showing:
> 127.0.0.1 - - [16/Jun/2009:11:58:05 -0600] "GET / HTTP/1.1" 304 0 "-"
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5
> (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5"
> 127.0.0.1 - - [16/Jun/2009:11:58:05 -0600] "GET /favicon.ico HTTP/1.1"
> 404 169 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
> AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5"
>
> http://localhost:50000/c and http://localhost:50000/c/ and
> http://localhost:50000/c/index.html (so in other words attempting to
> download a file I know is there) produce 404 errors and the following
> log messages:
> 127.0.0.1 - - [16/Jun/2009:11:59:00 -0600] "GET /c HTTP/1.1" 404 169 "-"
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5
> (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5"
> 127.0.0.1 - - [16/Jun/2009:11:59:07 -0600] "GET /c/ HTTP/1.1" 404 169
> "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5
> (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5"
> 127.0.0.1 - - [16/Jun/2009:11:59:18 -0600] "GET /c/index.html HTTP/1.1"
> 404 169 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
> AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.31 Safari/530.5"
>
> I've tried the same thing in Firefox in addition to Chrome and observed
> basically the same output of 404 errors.
>
> What am I missing?
>
> Thanks.
>
try removing location / { ... } block
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list