Мой nginx возвращает 404? Я не уверен, почему

Мой nginx возвращает 404? Я не уверен, почему

Вот мой / sites-available / default file, nginx.conf по умолчанию я ничего не изменил.

server { listen 80 default_server; listen [::]:80 default_server; root /var/www/example.com/htdocs/public; index index.php index.html index.htm index.nginx-debian.html; server_name example.com www.example.com; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { try_files $uri /index.php =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; } }
1
задан 10 February 2018 в 06:13

0 ответов

Другие вопросы по тегам:

Похожие вопросы: