How to set path for nginx web servers on Windows


If you using nginx web server on Windows version. may you face some issue if you setup path to another drive, since nginx 1.4.2 version you can't use absolute path. You may be surprised if you can't config to use path like d:/apache/htdocs/....

But here is solution!  use prefix /cygdrive/ then follow with your path.

    location / {
        root   /cygdrive/d/xampp/htdocs;
        index  index.html index.htm;
    }


that's it. :)

Comments

Popular Posts