I am using nginx as web server to my Django project.
I am using command
sudo service nginx start/stop/restart
to manage nginx server.
Now i am using Openresty framework to implement Lua code into nginx server to handle Cache system.
Openrestry provides it's own nginx.conf
file.
Requirement : Now i want then when i run
sudo service nginx start/stop/restart
system should call nginx.conf file from Openresty folder(/usr/local/openresty/nginx/conf/nginx.conf
in place of /etc/nginx/nginx.confM
file.
How can i achieve this ???
Best Answer
You should go to
Now when you will run sudo service nginx start/stop/restart it will call nginx.conf file from openresty folder. While /usr/local/openresty is the path where Openresty is installed by default