在nginx上,我配置了此角色:
On server file:
location ~ .php$ {
root /var/www/public;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# On Domain file
location /support {
try_files $uri $uri/ /index.php;
autoindex on;
autoindex_exact_size off;
}
#for admin panel
location ^~ /support/admin {
try_files $uri $uri/ /admin/index.php;
autoindex on;
autoindex_exact_size off;
}
我添加了自动索引后解决了403错误问题;线, 但当我单击我的域时,看到“支持索引”消息 当我想单击index.html文件时,此文件不显示,而是下载完成。 我该如何解决此问题,共享代码中有什么问题
答案 0 :(得分:0)
尝试一下
b