Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
461 views
by
Hi.

I have add some custom code in  /etc/nginx/nginx.conf and /etc/nginx/site-enable/domain.conf.

If I run command sudo webinoly -update.  The nginx .conf , php.ini  file will be edited?

Thank you.

1 Answer

0 votes
by Expert

Yes, but not on every update!

If the latest release includes modifications to the NGINX or PHP config files, they will be updated and replaced with the newest.

If not, they won't be touched.

If you want to add custom-nginx rules, please read the the documentation, especifically the "NGINX setup per site" section.

Regards.

by

Thank you very much.

But I don't know a bit coding. if you have some time. Can you suggest me a way?

in /etc/nginx/nginx.conf   I want to add this below # Logging Settings
 

log_format  main_ext  '$remote_addr - $remote_user [$time_local] "$request" '
                        '$status $body_bytes_sent "$http_referer" '
                        '"$http_user_agent" "$http_x_forwarded_for" '
                        '"$host" sn="$server_name" '
                        'rt=$request_time '
                        'ua="$upstream_addr" us="$upstream_status" '
                        'ut="$upstream_response_time" ul="$upstream_response_length" '
                        'cs=$upstream_cache_status' ;

and in /etc/nginx/sites-available/domain.com .  I want to change from
 

        access_log /var/log/nginx/example.com.access.log we_log;
        error_log /var/log/nginx/example.com.error.log;

TO

        access_log /var/log/nginx/example.com.access.log we_log main_ext;        
        error_log /var/log/nginx/example.com.error.log warn;

I don't want after the update. my config have changed. Thank you very much

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...