phpstudy configuration

host Host Configuration

the last line

 

127.0.0.1  cmf.im

 

 

{Server 
        the listen        80 ; 
        server_name CMF .im 127.0.0.1 ; 
        the root    "D: / CMF / PHPTutorial / the WWW / thinkcmf / public"; // thinkcmf installation path 
        LOCATION / { 
            index index .html index.htm index. PHP;
                 # Main this period is make sure there is 
                IF (-e! $ request_filename ) { 
                    rewrite   ^ $ /index.php?s=/$1 (*.)   Last;
                     BREAK ; 
                } 
                # end 
            # autoindex ON; 
         }
        LOCATION~ \.php(.*)$ {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            include        fastcgi_params;
        }
}

 

 

Nginx.conf path code added at the end of

include vhosts.conf;
include D:/cmf/PHPTutorial/nginx/conf/online.conf/*.conf;

 

Guess you like

Origin www.cnblogs.com/qianjilou/p/11085379.html