phpbb安装笔记

// 1、nginx配置
server {
     listen       8001;
     server_name  phpbb.cn;
     index index.html index.php;
     root /Users/mac/zhaoyanping/phpbb3/;

     access_log  /usr/local/var/log/nginx/phpbb.cn.access.log;
     error_log   /usr/local/var/log/nginx/phpbb.cn.error.log;

     location / {
         try_files $uri $uri/ =404;
         if (!-e $request_filename) {
                 rewrite ^(.*)$ /app.php;
         }

     }

     location /install/app.php {
         try_files $uri $uri/ /install/app.php?$query_string;
     }

     location /app.php {
         try_files $uri $uri/ /app.php?$query_string;
     }
     
    location ~ \.php$ {
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index  index.php;
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
         include        fastcgi_params;
     }
}

你可能感兴趣的:(phpbb安装笔记)