WDCP配置ThinkPHP5伪静态隐藏index.php,出现“”解决重定向次数
发布时间:2020-12-14 00:26:15 所属栏目:Linux 来源:网络整理
导读:站点域名的配置:xxx.com.conf server { listen 80 ; root /www/web/xxx_com/ public_html; server_name xxx . com; index index .html index.php index. htm; error_page 400 /errpage/400. html; error_page 403 /errpage/403. html; error_page 404 /errp
站点域名的配置:xxx.com.conf server { listen 80; root /www/web/xxx_com/public_html; server_name xxx.com; index index.html index.php index.htm; error_page 400 /errpage/400.html; error_page 403 /errpage/403.html; error_page 404 /errpage/404.html; error_page 503 /errpage/503.html; location ~ .php(.*)$ { fastcgi_pass unix:/tmp/php-70-cgi.sock; fastcgi_index index.php; #fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOT$fastcgi_script_name; #fastcgi_param PATH_INFO $2; include fcgi.conf; (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |