Home  >  Q&A  >  body text

There is no sites-enabled or conf.d in the nginx configuration path installed from source. How can I configure it myself?

It is said that this is to imitate the configuration of apache. Nginx itself does not have it, but it is added by the Linux package manager.
So if I compile from source, there will be no such thing. How to add it?

漂亮男人漂亮男人2713 days ago455

reply all(1)I'll reply

  • 阿神

    阿神2017-05-16 17:22:31

    What is conf.d used for?
    nginx.conf is in the conf in the nginx installation directory.
    The conf.d you mentioned is probably the path of a certain Linux distribution installed through the package manager.
    /q/1010000000141674 The problem here is the same as yours.

    reply
    0
  • Cancelreply