tp3.2 niginx配置


  1. server {
  2. listen 80;
  3. server_name 192.168.3.120 ;
  4. root "D:/phpStudy/WWW/jf";
  5. location / {
  6. index index.html index.htm index.php;
  7. if (!-e $request_filename) {
  8. rewrite ^(.*)$ /index.php?s=$1 last;
  9. break;
  10. }
  11. #autoindex on;
  12. }
  13. location ~ \.php(.*)$ {
  14. fastcgi_pass 127.0.0.1:9000;
  15. fastcgi_index index.php;
  16. fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
  17. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  18. fastcgi_param PATH_INFO $fastcgi_path_info;
  19. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  20. include fastcgi_params;
  21. }
  22. }

BLOG

搜索文章