Friday, January 14, 2011

How do I specify Windows file paths in nginx

I'm using the official windows version of nginx. I want to specify the windows equivalent of this configuration

location /static/ {
   alias /home/user/staticfiles/;
}

How do I specify windows file paths in the alias directive? Is this even possible?

  • You can try this:

    1. copy your static files into nginx/html/staticfiles
    2. set into nginx.conf

      location /static/ { alias /nginx/html/staticfiles/; }

0 comments:

Post a Comment