#nginx Open Directory Browse location /{ root/data/www/file //Specify the actual directory absolute path; autoindex on; Open Directory browsing function; autoindex_exact_size off; Close detailed file size statistics, let the file size display MB,GB units, default to B; autoindex_localtime on; Turn on show file modification date in server local time zone! } #windows下php-fpm turn on multiple port listening 1) Configure the upstream to the same level as the server{} segment. upstream Fastcgi_backend { server 127.0.0.1:9000; Server 127.0.0.1:9001; Server 127.0.0.1:9002; Server 127.0.0.1:9003; Server 127.0.0.1:9004; } " Fastcgi_backend "is the name of the configuration of this upstream. 2) Modify the Fastcgi_pass in the location to the previously configured upstream. Location ~ \.php$ { root d:/wnmp/www; #fastcgi_pass 127.0.0.1:9000; Fastcgi_pass fastcgi_backend; Fastcgi_index index.php; Fastcgi_param script_filename $document _root$fastcgi_script_name; Include fastcgi_params; }
Related Configuration in Nginx