Я загружаю корневой домен и категории или страницы. Но я не могу войти в / admin / или / phpmyadmin /, но вместо этого он загружает файл application / octet-stream.
Что можно сделать? Спасибо
Вот мой файл conf:
server {
listen 80;
listen [::]:80; #Use this to enable IPv6
server_name localhost;
root /var/www/html/;
index index.php;
location / {
try_files $uri $uri/ @rewriteapp; }
location @rewriteapp {
# rewrite all to index.php
rewrite ^(.*)$ /index.php/$1 last; }
# Php configuration location ~ ^/(index|index_dev)\.php(/|$) {
# Php-FPM Config (Socks or Network)
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
# fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; }# Security. discard all files and folders starting with a "." location ~ /\. {
deny all;
access_log off;
log_not_found off; }
# Stuffs location = /favicon.ico {
allow all;
access_log off;
log_not_found off; } location ~ /robots.txt {
allow all;
access_log off;
log_not_found off; }
# Static files location ~* ^.+\.(jpg|jpeg|gif|css|png|js|pdf|zip)$ {
expires 30d;
access_log off;
log_not_found off; }
}
у меня была похожая проблема с
location = /images/favicons/site.webmanifest {
log_not_found off;
access_log off;
}
он загружает файл вместо отображения
редактировать:
Я нашел решение, которое работает, но не знаю, если лучший …
location = /images/favicons/site.webmanifest {
default_type webmanifest;
log_not_found off;
access_log off;
}
Других решений пока нет …