mac下mamp使用fastadmin伪静态设置

第3处内容:

location / {
	if (!-e $request_filename){
		rewrite  ^(.*)$  /index.php?s=$1  last;  break;
	}
}

第4处内容:

location ~ \.php(.*)$ {
    fastcgi_pass     unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI_php7.2.34.sock;
    fastcgi_index  index.php;
    fastcgi_split_path_info  ^((?U).+\.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;
    include          /Applications/MAMP/conf/nginx/fastcgi_params;
}

******注意******
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI_php7.2.34.sock;  红色文字替换成使用的PHP版本文件

版权声明:
作者:xiaoniba
链接:https://blog.xiaoniba.com/2021/12/10/mac%e4%b8%8bmamp%e4%bd%bf%e7%94%a8fastadmin%e4%bc%aa%e9%9d%99%e6%80%81%e8%ae%be%e7%bd%ae/
来源:小泥吧的博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>