phpbb安装笔记

2020-04-13  本文已影响0人  zhaoyanping
// 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;
     }
}
上一篇下一篇

猜你喜欢

热点阅读