拜瑞
在重装了,想看看老哥的nginx怎么配置的啊,这是我的nginx配置文件,安装PHP的时候,需要在php.ini配置什么东西嘛
server {
listen 80;
server_name guangruan.life;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name guangruan.life;
ssl_certificate cert/guangruan.life/cert.pem;
ssl_certificate_key cert/guangruan.life/key.pem;
client_max_body_size 1024M;
root /wwww/flarum/public; # 改为你的Flarum主目录对应路径
access_log /usr/local/nginx/logs/access.log;
error_log /usr/local/nginx/logs/error.log;
index index.php;
include /www/flarum/.nginx.conf*;
php-fpm
location ~* .php$ {
fastcgi_pass 127.0.0.1:9000; #你在fpm中监听的端口
fastcgi_index index.php;
include /usr/local/nginx/conf/fastcgi.conf;
}
}