nginx:[emerg] / etc / nginx / sites-enabled / default:92中的未知指令“ location = \。php5”

时间:2019-07-15 13:05:31

标签: php apache nginx raspberry-pi webserver

我已经安装了nginx,apache2和php。

然后我编辑了domains使用的配置。然后,我尝试重新启动Nginx,但没有成功,我得到了

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

所以我尝试了systemctl status nginx.service并得到了:

â— nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2019-07-15 15:01:30 CEST; 1min 29s ago
     Docs: man:nginx(8)
  Process: 1349 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Jul 15 15:01:30 raspberrypi systemd[1]: Starting A high performance web server and a reverse proxy server...
Jul 15 15:01:30 raspberrypi nginx[1349]: nginx: [emerg] unknown directive "location=\.php5" in /etc/nginx/sites-enabled/default:92
Jul 15 15:01:30 raspberrypi nginx[1349]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jul 15 15:01:30 raspberrypi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Jul 15 15:01:30 raspberrypi systemd[1]: nginx.service: Failed with result 'exit-code'.
Jul 15 15:01:30 raspberrypi systemd[1]: Failed to start A high performance web server and a reverse proxy server.

实际上我没有尝试任何事情,因为我不知道自己在做什么,所以请帮忙。

0 个答案:

没有答案