nginx: [emerg] unknown directive "absolute_redirect"
时间: 2023-09-27 09:08:59 浏览: 130
Nginx 问题 之 nginx: [emerg] unknown directive "echo" in /weblogic/nginx/conf/nginx.conf:43-附件资源
5星 · 资源好评率100%
This error message indicates that the Nginx configuration file contains a directive called "absolute_redirect" that is not recognized by the Nginx server. This directive was introduced in Nginx version 1.7.11, so if you are using an older version of Nginx, you will see this error.
To resolve this issue, you can check the version of Nginx you are using by running the following command:
```
nginx -v
```
If you are using an older version, you can either upgrade your Nginx to the latest version or remove the "absolute_redirect" directive from your configuration file. If you choose to remove the directive, make sure to test your configuration file for any syntax errors before restarting Nginx.
阅读全文