Nginx.conf where is




















Daniel Li Add a comment. Active Oldest Votes. Improve this answer. Daniel Li Daniel Li Jing Li Jing Li 13k 5 5 gold badges 54 54 silver badges 66 66 bronze badges. VBart VBart 14k 4 4 gold badges 43 43 silver badges 49 49 bronze badges. I tried to run the commands but they didn't work for me.. The second anwer works — Revious. If you've installed nginx via a package manager such as HomeBrew Craig Wayne Craig Wayne 3, 3 3 gold badges 30 30 silver badges 42 42 bronze badges.

I just typed it on Ubuntu to make sure I hadn't lost my mind. It definitely does not show the path for which nginx "is being used". All other answers are useful but they may not help you in case nginx is not on PATH so you're getting command not found when trying to run nginx : I have nginx 1. The default location should be:. Either way, the document root is hardcoded in the configuration files, so you can find it from there.

The above article may contain affiliate links, which help support CloudSavvy IT. Skip to content Cloud Docker Microsoft. Linux Cybersecurity Programming. Viewed 89k times. Improve this question. Your problem isn't with PHP the language i. I cannot comment on the latter part of your post, as it seems highly subjective and biased. You can find where nginx config is located using nginx -V which you can find in the manual with man nginx. The -V option is documented as "-V Print the nginx version, compiler version, and configure script parameters.

Add a comment. Active Oldest Votes. Improve this answer. It looks like these 2 files are talking to each other on my server and now I'm dealing with Codeigniter-specific issues. Are you using codeigniter? The directives you can include within a server context vary depending on the traffic type.

For HTTP traffic the http context , each server directive controls the processing of requests for resources at particular domains or IP addresses.

One or more location contexts in a server context define how to process specific sets of URIs. In general, a child context — one contained within another context its parent — inherits the settings of directives included at the parent level. Some directives can appear in multiple contexts, in which case you can override the setting inherited from the parent by including the directive in the child context.

For changes to the configuration file to take effect, it must be reloaded.



0コメント

  • 1000 / 1000