LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Webserver Nginx (https://www.linuxquestions.org/questions/linux-server-73/webserver-nginx-4175716018/)

1s440 08-24-2022 02:54 AM

Webserver Nginx
 
Hi all,
I have configured nginx webserver and when I look for the site status via curl I get Http internal error , but when i check ngnix status everything is okay. Any suggestions please. I get the same error with wget also

Code:

root@test:~# curl -i http://servername/nginx_status
HTTP/1.1 500 Internal Server Error
Server: nginx/1.18.0 (Ubuntu)
Date: Wed, 24 Aug 2022 07:35:36 GMT
Content-Type: text/html
Content-Length: 141
Connection: keep-alive

<html>
  <head>
    <title>Internal Server Error</title>
  </head>
  <body>
    <h1><p>Internal Server Error</p></h1>

  </body>
</html>


bathory 08-24-2022 04:34 AM

Quote:

Originally Posted by 1s440 (Post 6375786)
Hi all,
I have configured nginx webserver and when I look for the site status via curl I get Http internal error , but when i check ngnix status everything is okay. Any suggestions please. I get the same error with wget also

Code:

root@test:~# curl -i http://servername/nginx_status
HTTP/1.1 500 Internal Server Error
Server: nginx/1.18.0 (Ubuntu)
Date: Wed, 24 Aug 2022 07:35:36 GMT
Content-Type: text/html
Content-Length: 141
Connection: keep-alive

<html>
  <head>
    <title>Internal Server Error</title>
  </head>
  <body>
    <h1><p>Internal Server Error</p></h1>

  </body>
</html>


Does curl -i http://servername/ works?
You can check the nginx error.log to see if you find anything useful.

1s440 08-24-2022 06:09 AM

it worked. there was nginx service issue


All times are GMT -5. The time now is 03:41 PM.