nginx Windows: setting up sites-available configs

后端 未结 4 1042
佛祖请我去吃肉
佛祖请我去吃肉 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:36

    You can include your config with a relative path in your nginx.config (the relative path is just the path of the config file itself in contrast to the logs path for example):

    http {
      include       mime.types;
      default_type  application/octet-stream;
      include       ../sites-enabled/*.conf;
      ...
    }
    

提交回复
热议问题