nginx和php重复配置了很多次都不行
服务器用的nginx配合php-fpm
nginx相关配置如下
http
{
......
server_names_hash_bucket_size 512;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 130m;
sendfile on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
......
}
server
{
listen 443 ssl http2;
listen [::]:443 ssl http2;
............
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
location ~ [^/]\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
............
access_log /www/wwwlogs/access.log;
}
php相关配置如下
Upload插件配置如下