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-05, 08:29:54

Author Topic: Customize Nginx value  (Read 3634 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Customize Nginx value
« on: 2016-08-29, 09:44:58 »
I need to customize client_max_body_size to a higher value in /opt/configs/nginx/conf/globals/proxy_standard_ssl.conf and /opt/configs/nginx/conf/globals/switch_standard_ssl.conf.  Can i create a custom.proxy_standard_ssl.conf and custom.switch_standard_ssl.conf file?
« Last Edit: 2016-08-29, 09:47:34 by fossxplorer »
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Customize Nginx value
« Reply #1 on: 2016-08-29, 10:05:23 »
There is no check for custom.switch_standard* nor custom.proxy_standard* in tpl/domains.conf.tpl nor tpl/defaults.conf.tpl so i assume we can't customize values on those files.

Can you add support for that @Mustafa?
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize Nginx value
« Reply #2 on: 2016-08-29, 15:27:11 »
Source file for switch_*.conf is proxy_*.conf and php-fpm_*.conf. So you must copy proxy_*.conf to custom.proxy_*.conf and php-fpm_*.conf to custom.php-fpm_*.conf
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Customize Nginx value
« Reply #3 on: 2016-09-01, 14:33:50 »
Thanks.
What about defaults/init.conf... Can i create a custom.init.conf too?
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize Nginx value
« Reply #4 on: 2016-09-01, 17:14:56 »
Init created by defaults.conf.tpl.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Customize Nginx value
« Reply #5 on: 2016-09-02, 19:31:01 »
#/opt/configs/nginx
I've created tpl/custom.defaults.conf.tpl with the following change:

if (!isset($timeout)) {
        $timeout = '3000';
}


and ran sh fixweb, and i can see the changes in  conf/defaults/init.conf.

But these changes aren't to be seen in /opt/configs/nginx/conf/domains/mydomain.com.conf.
What am i missing now?


Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize Nginx value
« Reply #6 on: 2016-09-02, 20:34:49 »
No. Use 'web features' under domain for setting up 'timeout'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.069 seconds with 23 queries.

web stats analysis