A
A
acspro2015-03-31 02:52:29
Nginx
acspro, 2015-03-31 02:52:29

Autoexpanding 3rd level domains nginx apache2?

Guru, I appeal to you! The situation is this - here is a self-written crm and vps. It has a bunch of nginx + apache2. Nginx gives Apache statics - dynamics. The point is. You need to add a third-level domain for the server upon request, and without restarting the processes themselves (that is, without executing the service nginx restart; service apache2 restart commands). If there is some way to automatically add 3rd level domains like this? I have now written a simple bash script and run it while a user is being created and permissions are being assigned, etc. and add configs to /etc/nginx/site-availible/ /etc/apache/site-availible/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Filimonov, 2015-03-31
@acspro

Did I understand correctly that the whole difficulty is to reread the nginx / apache configuration without reloading the daemon? If so, then there is reload for this, which demons can do. In your case, most likely: service nginx reload and similarly for apache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question