服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. linux nginx
  3. 如何在站点configuration中设置nginx位置以避免“重写或内部redirect周期”错误
Intereting Posts
MySQL 5.5和MariaDB5.5为相同的数据和相同的select查询返回不同数量的列? 远程*后台* GUIlogin到OSX工作站? 域控制器的自动故障转移 重命名Sharepoint 2010中的Web应用程序 使用组策略来强制某些安全组注销远程桌面会话 在Solaris / OmniOS上安装更新之前获取更新日志? DHCP监听阻止客户端服务器接收IP VMware ESXi到VMware服务器又回来了? 如何最好地调整Linux开发机器? Google Cloud HTTPS负载平衡器 – 多个证书,相同的IP request.status 12031 LocationMatch正则expression式可以匹配查询string部分吗? 启动后和预login关机 Windows服务器拒绝远程信用 Nginx为什么我的服务器在localhost上提供正确的内容,但不是0.0.0.0

如何在站点configuration中设置nginx位置以避免“重写或内部redirect周期”错误

我在我的site.conf中为nginx下面的行

Server { # Some other stuff ... location / { try_files $uri /index.php?$args $uri/=404; } error_page 404 /404.html; location = /404.html { root /var/www; internal; } location ^~ /app.css { alias /var/www/public/css/app.css; access_log off; } } } 

但是这是导致rewrite cycle for 404 page 。 我究竟做错了什么?

  • 为什么我的iptables端口不能正常工作?
  • access.conf文件中的更改是否需要重新启动?
  • 为什么延迟池不能正常工作?
  • 如何使用pointopoint外部地址linux?
  • P4:没有这样的文件或目录 – 实际上它存在
  • 如何在RHEL7中限制sudo用户权限?
  • 具有两个AD域的Linux SSSD
  • 尝试storage.googleapis.com时出现证书错误
  • 如何在CoreOS主机上安装gcc,而不是运行在其中的容器
  • 直接在edgenodes上更改configuration
  • 无法连接到supervisord网页界面
  • 绑定到公共GRE IP
  • 如何筛选在最近n分钟内有更改权限的文件
  • 什么是php-cgi56,如何阻止发送电子邮件?
  • 如何在n秒后创build并closuresSOCKS5隧道?

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