Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

On this page
Help Center/ CodeArts Deploy/ FAQs/ Custom Application Actions/ Starting or Stopping Nginx/ Incorrect Format of the Nginx Configuration File

Incorrect Format of the Nginx Configuration File

Updated on 2023-11-28 GMT+08:00

Symptoms

An error message containing unexpected end of file is displayed.

"nginx: [emerg] unexpected end of file, expecting \";\" or \"}\" in /usr/local/nginx/conf/nginx.conf:1"

Cause Analysis

The format of the nginx configuration file is incorrect. As a result, an error is reported when the nginx process is started.

Solution

Edit the nginx configuration file using a local editor and copy the file to the text box after verification.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback