nginx 配置域名主 xxx.com, 跳转子域名 www.xxx.com
分类:
其他好文 时间:
2018-09-20 18:50:39
阅读次数:
174
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 改成红色部分变量 root /usr/local/nginx/html; 把root节点提前到location上面 ...
分类:
其他好文 时间:
2018-09-09 22:19:11
阅读次数:
280
修改 \etc\nginx\conf.d\default.conf 复制之前的server模块一份,重点修改server_name、root、fastcgi_param 如: server { listen 80; server_name exam.baidu.com; location / { r ...
分类:
其他好文 时间:
2018-07-04 18:46:12
阅读次数:
166
修改:/usr/local/nginx/conf/fastcgi.conf . 找到最后一句:在:/tmp前面加‘../‘
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/";
分类:
Web程序 时间:
2018-07-03 14:53:28
阅读次数:
870
php7.1 如果出现了错误 检查你的SCRIPT_FILENAME, fastcgi_param 并根据你文件的地址来设置它们. 在你的nginx配置文件中包含有fastcgi_split_path_info ^(.+\.php)(/.+)$; 则所有其他的对应fastcgi参数也都应该在loca ...
分类:
其他好文 时间:
2018-05-14 16:53:09
阅读次数:
1295
fastcgi_split_path_info ^(.+\.php)(.*)$; #增加这一句
fastcgi_param PATH_INFO $fastcgi_path_info; #增加这一句
分类:
其他好文 时间:
2018-05-04 23:26:44
阅读次数:
198
Nginx+Php中限制站点目录防止跨站的配置方案记录(使用open_basedir) 方法1)在Nginx配置文件中加入: 1 fastcgi_param PHP_VALUE "open_basedir=$document_root:/tmp/:/proc/"; 1 fastcgi_param P ...
分类:
Web程序 时间:
2018-04-10 16:30:39
阅读次数:
215
两种方法: 1.修改fastcgi的配置文件 /usr/local/nginx/conf/fastcgi.conf fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/../:/tmp/:/proc/"; 2.这个时候需要在php.i ...
分类:
Web程序 时间:
2018-04-03 17:37:34
阅读次数:
1121
Nginx 的 fastcgi 模块提供了 fastcgi_param 指令来主要处理这些映射关系,下面 Ubuntu 下 Nginx 的一个配置文件,其主要完成的工作是将 Nginx 中的变量翻译成 PHP 中能够理解的变量。 在php可打印出上面的服务环境变量 如: [转自] https://s ...
分类:
其他好文 时间:
2017-12-13 16:54:34
阅读次数:
205
在nginx配置文件中,可以在nginx总体的配置文件nginx.conf中,也可以在单独的网站配置环境中进行设置,如:www.tomener.com.conf 在配置环境server段location中添加相应的配置信息: 这里只添加了fastcgi_param RUNTIME_ENVIROMEN ...
分类:
其他好文 时间:
2017-09-01 22:20:13
阅读次数:
462