
centos服务器 +php7.2+mysql5.7+nginx1.16.1
#hisiphp框架
server {
listen 80;
#listen [::]:80 default_server;
server_name 域名;
root /usr/share/nginx/html/hphp/public;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ .php$ {
include fastcgi_params;
#端口号请根据实际情况填写
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_read_timeout 60s;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
nginx相关配置如上,但是防问后台出现上图页面找不到
访问的地址是:http://域名/admin.php/system/publics/index.html