Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-08, 18:06:49

Author Topic: Correct nginx.conf file location  (Read 2076 times)

0 Members and 1 Guest are viewing this topic.

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Correct nginx.conf file location
« on: 2014-01-03, 20:02:13 »
Hi, which nginx.conf file is the one I need to modify, I need to get real Ip addresses using Cloudflare http://www.danielmiessler.com/blog/getting-real-ip-addresses-using-cloudflare-nginx-and-varnish


I have 4 files on my server:

/etc/nginx/nginx.conf
/home/nginx/etc/conf/nginx.conf
/usr/local/lxlabs/kloxo/file/nginx/etc/conf/nginx.conf
/usr/local/lxlabs/kloxo/init/nginx.conf

Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Correct nginx.conf file location
« Reply #1 on: 2014-01-06, 20:36:47 »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline ebokalsel

  • Junior Member
  • *
  • Posts: 41
  • Karma: +1/-0
    • View Profile
Re: Correct nginx.conf file location
« Reply #2 on: 2014-01-08, 01:31:18 »
try /etc/nginx/nginx.conf as this is the first conf read by nginx

/etc/nginx/nginx.conf set to include '/etc/nginx/conf.d/*.conf' and then

'/etc/nginx/conf.d/~lxcenter.conf set to include:

    include /home/nginx/conf/defaults/*.conf;
    include /home/nginx/conf/domains/*.conf;
    include /home/nginx/conf/webmails/*.conf;

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.079 seconds with 18 queries.

web stats analysis