No default.conf file was generated

Maxim Dounin mdounin at mdounin.ru
Wed Nov 11 23:59:46 UTC 2015


Hello!

On Wed, Nov 11, 2015 at 05:06:21PM -0500, rnovo1983 wrote:

> After the installation of nginx/1.6.3 on CentOS 7, no default.conf file was
> created under etc/nginx/conf.d
> 
> Can anybody explain me why?..

The only configuration file used by nginx itself is nginx.conf.  
Everything else are included files, and they are provided by 
packages you use, "for convenience" (quotes because in most cases 
these additional files and directories cause confusion instead).  
Depending on a particular package you've installed they may or may 
not be provided.

If in doubt, try looking into nginx.conf.  It contains all the 
configuration, and if there are any included files - you'll see 
the "include" directives there to include them.

Detailed documentation on the "include" directive can be found 
at http://nginx.org/r/include.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list