nginx-php基础配置

server {
    listen 80;
   server_name test.com; client_max_body_size 100M; root
"/home/www/public"; location / { try_files $uri /index.php$is_args$args; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_read_timeout 600; include fastcgi_params; } }

 

posted @ 2020-08-17 11:26  jyLi  阅读(113)  评论(0编辑  收藏  举报