Nginx and reload config

hape

Verified User
Joined
Jul 22, 2010
Messages
80
Location
Poland
Hi, how often DA reload configs for nginx? Have I to add to cron this command?
Code:
service nginx reload
 
Hi, how often DA reload configs for nginx? Have I to add to cron this command?
Code:
service nginx reload
I don't think there is a reason for doing it 'often'.
it is done by DA everytime you change a value to the user's server (a.k.a nginx.conf) from within DA of course.
 
Maybe yes. But after adding new domain, I see Apache is functioning normally. All is ok after service nginx reload.
Which script is executed after adding domain?
 
Maybe yes. But after adding new domain, I see Apache is functioning normally. All is ok after service nginx reload.
Which script is executed after adding domain?
if you are using custombuild 2.0 with NGINX as your webserver, then:
1. you should not have apache, unless it is running as a proxy :)
2. it should be reloaded when you add a domain.

you could use domain_create_post.sh to add your own code if you really need to.
 
Apache has been removed manually. After that nginx has been installed. DA creates configs for VH correctly, but doesn't reload. I've added to cron reload nginx every 15 minutes. For me it's better than reload nginx after every VH adding.
 
Apache has been removed manually. After that nginx has been installed. DA creates configs for VH correctly, but doesn't reload. I've added to cron reload nginx every 15 minutes. For me it's better than reload nginx after every VH adding.
Maybe someone from DA should say something about this...
 
Hello,

Check:
/var/log/directadmin/system.log

to check that you're seeing, eg:
Code:
2013:10:23-01:46:01: named reloaded2013:10:23-01:46:02: nginx restarted
2013:10:23-01:46:02: php-fpm53 gracefuled
2013:10:23-01:46:02: php-fpm55 gracefuled
with a change.

I got that output after adding a subdomain.

Possibly related:
http://help.directadmin.com/item.php?id=107

John
 
Hey John,
is NGINX really restarted?
shouldn't it be reloaded...?
 
Back
Top