• Support
  • NGinx stoped after install new site with one click deployement tool!

Hi i need help asap about nginx issue :

Nginx rule configuration error:
nginx: [emerg] unknown directive "http2" in /www/server/panel/vhost/nginx/mail.xxx.com.conf:5
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

    I uninstall nginx and reinstall it and :

    nginx: [emerg] unknown directive "http2" in /www/server/panel/vhost/nginx/mail.xxx.com.conf:5
    nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

    2024-07-28 12:23:17][DEBUG] - nginx
    [2024-07-28 12:23:17][DEBUG] - nginx
    [2024-07-28 12:24:17][DEBUG] - nginx
    [2024-07-28 12:45:40][DEBUG] - nginx
    [2024-07-28 12:45:40][DEBUG] - nginx
    [2024-07-28 12:45:40][DEBUG] - nginx
    [2024-07-28 12:45:45][DEBUG] - nginx
    [2024-07-28 12:45:45][DEBUG] - nginx
    [2024-07-28 12:45:45][DEBUG] - nginx
    [2024-07-28 12:45:52][DEBUG] - nginx
    [2024-07-28 12:45:52][DEBUG] - nginx
    [2024-07-28 12:45:52][DEBUG] - nginx
    [2024-07-28 12:47:31][DEBUG] - nginx
    [2024-07-28 12:50:03][DEBUG] - nginx
    [2024-07-28 12:50:03][DEBUG] - nginx
    [2024-07-28 12:50:37][DEBUG] - nginx
    [2024-07-28 13:02:36][DEBUG] - nginx
    [2024-07-28 13:02:36][DEBUG] - nginx
    [2024-07-28 13:02:43][DEBUG] - nginx
    [2024-07-28 13:03:24][DEBUG] - nginx
    [2024-07-28 13:04:17][DEBUG] - nginx
    [2024-07-28 13:04:21][DEBUG] - nginx
    [2024-07-28 13:04:38][DEBUG] - nginx
    [2024-07-28 13:04:53][DEBUG] - nginx

    i unistalled the nginx and site than installed the apache, now my sites working but nginx not!

    sturk
    Hello, please follow the prompts to find the problematic configuration file, check it, and try to repair it manually.
    /www/server/panel/vhost/nginx/mail.xxx.com.conf

    i did but it s not working. Uninstalled the nginx and tried to reinstall but vhost conf files not created by automaticly. I created the files but nothing changed. It didn t start. Than i uninstalled the nginx and install apache. Now web sites working with apache but nginx still broken!

      It is recommended that you check the prompted file, which is caused by the configuration file.

      sturk