最近一直没用nginx 昨天将tp3.2的项目部署到Ubuntu下的nginx下,发现忘记怎么配置的了 特将配置方式记录下来,以方便日后查找 重启nginx
转载
2019-04-01 12:52:00
212阅读
2评论
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections ...
转载
2018-10-12 13:29:00
232阅读
2评论
$where['enterprise_id'] = $enterpriseId;
//企业名称不为空
if(!empty($enterpriseName)){
$where['enterprise_name'] = array('like',"%$enterpriseName%");
}
$table2&nb
原创
2016-05-12 15:39:46
2243阅读
location / { root /usr/share/nginx/html; index index.html index.htm; if (!-e $request_filename) { &nb
原创
2015-10-20 13:43:26
732阅读
server { ... location / { index index.htm index.html
转载
2017-11-06 13:19:46
501阅读
http://www.tuicool.com/articles/nQFnQrR 1,sublime text 增强插件 右键可以打开文件目录 http://www.w3cfuns.com/notes/13810/d9b9ed2fb80785dae88a5344ef0f30d4.html 2,thin
转载
2016-10-10 16:22:00
194阅读
2评论
一、阿帕奇域名已经开始访问的时候:(去掉index.php) 访问路径: JS路径代码: 二、阿帕奇域名没开启:(没有掉index.php) 访问路径: JS路径代码:
原创
2021-06-04 23:00:29
273阅读
一、阿帕奇域名已经开始访问的时候:(去掉index.php
原创
2023-04-05 20:18:56
103阅读
站点配置文件server { listen 80; server_name localhost 222.78.4.90; &n
原创
2013-08-28 08:50:27
897阅读
thinkphp5在nginx环境下运行的时候默认是不支持通过index.php/index/index/index的形式去访问的,也不支持route,所以需要手动配置nginx使其支持。apache默认支持修改nginx的配置文件找到你的thinkphp站点配置项,在其中的php项中如同下面配置windowslocation~\.php(.*)${fastcgi_pass127.0.0.1:90
原创
2019-08-28 13:25:06
1250阅读
多个入口访问官方可以访问,访问后台就不行了,需要配置多入口 listen 80; server_name 172.30.164.199; index index.php index.html index.htm default.php default.htm default.html login.p
原创
2021-10-18 16:03:10
327阅读
直接记录配置如下
user www;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include &n
原创
2015-07-10 14:50:04
494阅读
IndexController.class.php
<?phpnamespace Home\Controller;use Think\Controller;class IndexController extends Controller { function index(){ &nbs
原创
2015-03-26 18:18:20
773阅读
首先确保你的电脑已经安装了wamp server,并且已经启动了wamp在浏览器里输入:htt
原创
2022-08-11 17:44:23
251阅读
有时候我们会有一些规则定义每个数字对应的实际内容,比如说在下拉菜单的时候: [html] view plain copy <select name="reasonAndType" id=""> <option value="1">查询物流</option> <option value="2">办理退
原创
2022-06-13 12:08:09
63阅读
控制器代码: public function index(){ $username=I("username"); $order=I("order"); $data=M('users')->where(array('username'=>$username))->order($order)->sele ...
转载
2021-07-23 12:16:00
248阅读
2评论
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');//错误页面define('APP_PATH','./myapp/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件<?phpdefine('DI...
转载
2014-12-04 17:27:00
99阅读
控制器代码: public function index(){ $id=I('id'); $res=M('users')->find($id); dump($res); } 复现: payload: id[table]=users where 1 and updatexml(1,concat(0x7 ...
转载
2021-07-22 17:47:00
508阅读
2评论