Where is nginx default config file on Ubuntu 18.04

Discussion in 'Installation/Configuration' started by labsy, Mar 25, 2020.

Tags:
  1. labsy

    labsy Member

    Hi,
    I've followed this tutorial https://www.howtoforge.com/tutorial...g-3/2/#-install-nginx-php-phpfpm-and-fcgiwrap and most things work fine...
    Except I struggle every time I would like to change something globally on nginx, because I simply cannot find its default global config file.
    And NO, it looks like it is not /etc/nginx/nginx.conf (...because, for example, I can add some headers there, but they are simply not created for website)
     
  2. labsy

    labsy Member

    Anybody? Till?
     
    Last edited: Apr 3, 2020
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The file is /etc/nginx/nginx.conf
     
  4. labsy

    labsy Member

    Hmmm...but why those headers and options, which I setup there, do not kick-in for websites automagically?
    For example, I have some x-headers setup there, and for WordPress optimized links. like this:
    Code:
    location / {
      try_files $uri $uri/ /index.php?$args;
    }
    But no, websites do not obey those settings.
    Any idea why?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    That's a setting that must be set in the website and not globally.
     

Share This Page