服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. nginx PHP php7
  3. Nginx服务器返回404除了索引之外的所有php页面
Intereting Posts
带有vSphere的Windows VM – 无法访问 从Windows 2012 R2 DHCP租用时间不正确 设置特定主机的Mxlogging FC14和yum依赖 如何将suexec根目录从“/ var / www”更改为“/ home”? client_body_buffer_size威胁 Apache 2.4的当前每秒请求数 如何在Ubuntu上configurationJenkins部署path? CentOS / Redhat:通过LDAP / sssdlogin时的全系统别名 fstab和cifs挂载,可能存储authentication信息fstab之外? php脚本来重启远程mysql Linux exim只发送带有NO域的邮件服务器 Memcached和repcached不复制2个主服务器 Idera ServerBackup / R1soft内核模块 Upstart:从主文件夹运行应用程序

Nginx服务器返回404除了索引之外的所有php页面

我用nginx和php 7.1安装了一个新的服务器。 当我想打电话给myurl.com/page时,它会返回一个404.当我打电话给myurl.com/时,一切都很好。

我已经在我的nginxconfiguration中添加了这个:

location ~ \.php$ { include snippets/fastcgi-php.conf; # # With php7.0-cgi alone: # fastcgi_pass 127.0.0.1:9000; # # With php7.0-fpm: fastcgi_pass unix:/run/php/php7.1-fpm.sock; } 

  • 如何根据用户代理和位置在uwsgi_pass和try_file之间进行select?
  • Nginx的Httpsredirect不工作在Ubuntu 16.04
  • 温暖caching,但不要提出太多的DNS请求
  • NGINX被用作反向代理拒绝连接
  • 当它们被nginx使用时,从/ var / www / html复制文件

  • configurationNginx从虚拟机到本地机器
  • NGINXdocker集装箱立即停止
  • 网站目录的安全权限
  • nginx,限制除index.php之外的所有.php,允许POST
  • nginx http到https重写规则不再起作用

啊,我愚蠢。 我不得不添加try_files $uri $uri/ /index.php?$query_string; 到我的nginxconfiguration。

  • Slim PHP Framework在Nginx的子目录中路由
  • nginxconfiguration路由干扰
  • 使用nginx图像filter模块即时更改图像质量
  • NGINX IP透明度SSLstream
  • Ubuntu服务器附加networking接口已停止响应
  • Aws Redis集群会话pipe理不起作用
  • NGINX不logging到系统日志
  • PHP脚本不能从子目录执行
  • php-fpm不能用于nginx重写
  • 如何在nginx访问日志中loggingproxy_pass?

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy