nginx Windows: setting up sites-available configs

后端 未结 4 1055
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 15:49

I\'m trying to set up Nginx on my Windows development environment. I can\'t find how to create something similar to \"sites-enabled\" on Linux where Nginx would

4条回答
  •  悲&欢浪女
    2020-12-08 16:27

    The following worked for me but only AFTER I moved my main nginx exe folder from c:/Program Files (x86)/nginx-1.7.0 to c:/nginx-1.7.0 (because I think it doesn't handle spaces in file paths well):

    http {
        ...
        include "f:/code/mysite/dev-ops/nginx/dev/mysite.conf";
    }
    

提交回复
热议问题