The problem is that if the panel or its nginx starts before the server connects to the internet, it will cause the Nginx not to resolve DNS, which will cause the nginx not to be started; that is because I apply a reverse proxy to my GitHub pages.
How to let aapanel or its nginx to wait until connect to internet.
can i set it to like start after connect to internet?
- Best Answerset by aaP_jingming295
Hello, I suggest you use cron to add a task and start nginx every 5 minutes. Is it okay?
/etc/init.d/nginx start