Nginx for Windows Buggy Path Setting (Kevin Worthington Port)


nginx bases the root directory into the hardcoded path

/cygdrive/c/nginx/
even if you don't have Cygwin installed
There is a workaround, though, to use relative directory paths:

    location / {
        root   ../www;
    }

This will get you the root directory set to c:\www, if nginx lives in C:\nginx.


to download cygwin version of nginx visit:
http://www.kevinworthington.com/nginx-for-windows/

thanks kevin for stopping by :)

source:
http://thread.gmane.org/gmane.comp.web.nginx.english/8737/focus=9635

3 thoughts on “Nginx for Windows Buggy Path Setting (Kevin Worthington Port)

  1. Hi Kevin,

    Thanks for visiting this blog, you’ve done great work with this cygwin version of nginx…now I use it for my local development server, thanks😉

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s