网站首页 站内搜索

搜索结果

查询Tags标签: FastCGI,共有 115条记录
  • .user.ini的注意事项

    关于.user.ini的相关信息及基本利用可以参考一下文章:https://wooyun.js.org/drops/user.ini%E6%96%87%E4%BB%B6%E6%9E%84%E6%88%90%E7%9A%84PHP%E5%90%8E%E9%97%A8.html 我之所以写下这篇随笔,是因为在学习的过程中产生了一些误解及困惑,尽管已经解决,但还是记…

    2022/8/27 23:24:51 人评论 次浏览
  • thinkphp6服务器部署nginx下报HTTP ERROR 500错误

    原因:thinkphp6默认访问文件夹是public,但是要加载站点目录之外的文件 解决办法: 修改nginx配置文件fastcgi.conf,找到fastcgi_param PHP_ADMIN_VALUE这个参数,在这个参数的字符串中加入路径fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/…

    2022/8/13 5:25:18 人评论 次浏览
  • php (nginx,apache) 常用配置

    前台html服务器,测试的时候不加缓存 server {listen 82;root D:/phpStudy/WWW/xxx;index index.html index.htm;location ~ .*\.(css|js|swf|htm|html)$ {add_header Cache-Control no-store;} }php项目 laravel , thinkphp , Ci 都用这个 server {listen 83;roo…

    2022/8/12 5:23:07 人评论 次浏览
  • 21-物联网开发终端管理篇-安装PHP,测试GET,POST接口(.Windows系统)

    <p><iframe name="ifd" src="https://mnifdv.cn/resource/cnblogs/iot_terminal_management" frameborder="0" scrolling="auto" width="100%" height="1500"></iframe></p> <if…

    2022/8/6 5:23:10 人评论 次浏览
  • Ngixn目录结构及运行原理

    通过tree插件查看Nginx的目录结构,没有的可以通过yum install -y tree找到自己的Nginx文件目录输入[root@localhost ~]# tree /usr/local/nginx /usr/local/nginx ├── client_body_temp # POST 大文件暂存目录 ├── conf …

    2022/7/16 23:49:11 人评论 次浏览
  • Nginx常见问题

    Nginx常见问题 nginx多server优先级 # 优先级匹配顺序 1.首先选择所有的字符完全匹配 (精确匹配) 的server_name。 (完全匹配)2.选择通配符在前面的server_name3.选择通配符在后面的server_name4.正则表达式的server_name、5.所有匹配规则相同时,哪个配置文件listen...后…

    2022/6/25 5:19:27 人评论 次浏览
  • PHP中SERVER_NAME获取的问题

    PHP代码 网站配置根目录下 info.php <?php echo "<pre>"; echo $_SERVER[SERVER_NAME];host配置 127.0.0.1 www.my-search.com 127.0.0.1 www.my-play.comnginx配置 server {listen 80;server_name www.my-search.com www.my-play.com;root …

    2022/6/7 1:20:43 人评论 次浏览
  • linux fast-cgi 与 php-fpm的区别

    CGI是为了保证web server传递过来的数据是标准格式的,方便CGI程序的编写者fastcgi 也是协议,是对原来的cgi格式的补充及完整, 主要是用来提高cgi的性能, php-fpm 与 spawn-fcgi 都是fastcgi的实现者参考链接:https://godruoyi.com/posts/the-relationship-between…

    2022/4/24 7:14:49 人评论 次浏览
  • nginx配置文件

    1.配置文件 user nginx; worker_processes auto; pid /run/nginx.pid;# 包含下方模块 include /usr/share/nginx/modules/*.conf; # 错误日志 error_log /yang/logs/nginx/error.log;events {worker_connections 1024; }# http协议 http {log_format main $remote_addr …

    2022/4/6 7:21:24 人评论 次浏览
  • THINKPHP5 NGINX通用配置

    server { #配置监听端口 listen 80; listen [::]:80; #设置网站根目录作为变量root set $root /var/www/web; #设置网站根目录 root $root; #设置访问日志存放路径 #access_log logs/access.log; #设置错误日志存放路径 #error_log lo…

    2022/4/6 7:19:49 人评论 次浏览
  • Nginx配置文件详解

    配置文件目录/usr/local/nginx/ ├── conf # 这是Nginx所有的配置文件目录 │ ├── fastcgi.conf # fastcgi相关参数的配置文件 │ ├── fastcgi.conf.default # fastcgi默…

    2022/3/20 7:35:58 人评论 次浏览
  • 解决Nginx的"File not Found"

    server {server_name demo.com;listen 80;index index.php;root "D:\www\pros";location ~ ^(.*)\.php$ {# 也可使用unix地址fastcgi_pass localhost:9000;fastcgi_index index.php;# PHP-FPM读取的文件路径如果与Nginx一致可使用$document_root替换黄颜色部分#…

    2022/3/7 7:15:38 人评论 次浏览
  • nginx cache放到内存

    创建cache目录 mkdir -pv /var/cache/nginx/fastcgi_cache 修改/etc/fstab文件 tmpfs /var/cache/nginx/fastcgi_cache tmpfs defaults,size=200m,context=system_u:object_r:httpd_cache_t:s0挂载文件 mount -t ramfs none /var/cache/nginx/fastcgi_cache

    2022/3/6 7:15:09 人评论 次浏览
  • nginx vue前后端分离配置示例

    vue + thinkphpvue为history路由模式,固定/api,/static前缀为php使用server {listen 80;server_name localhost;set $static_root ; # web目录set $php_root ; # php目录root $static_root;index index.html index.htm index.php;location ~ \.php$ {root $php_ro…

    2022/3/3 7:17:56 人评论 次浏览
  • ThinkAdmin 服务器 Nginx 配置

    下面的配置是 ThinkAdmin 框架的 Nginx 配置,thinkphp 项目可以通用。 server {listen 80;server_name xxx.com;root /data/php/xxx/public;index index.php index.html index.htm;location / {try_files $uri $uri/ @rules;#if (!-e $request_filename) {# …

    2022/2/28 7:21:25 人评论 次浏览
共115记录«上一页1234...8下一页»
扫一扫关注最新编程教程