【问题标题】:Nginx Joomla frontend 550 internal and 404 error except frontpage [closed]Nginx Joomla 前端 550 内部和 404 错误,除了首页
【发布时间】:2014-01-05 20:19:18
【问题描述】:

当我点击首页上的链接时,我收到 500 内部服务器错误,例如:创建一个帐户,或者只是我自己创建的一个菜单项。

刚刚在我的 VPS 上安装了 Joomla。后端完全没有问题。

错误日志:

2013/12/17 22:04:12 [错误] 1974#0: *464 重写或内部重定向周期,而内部重定向到“/index.php/index.php/component/users/”,客户端:XX .XX.XXX.XX,服务器:my-domain.com,请求:“GET /index.php/component/users/?view=remind HTTP/1.1”,主机:“my-domain.com”,引用者:“ http://my-domain.com/"

2013/12/17 22:04:12 [错误] 1974#0: *465 重写或内部重定向周期,同时内部重定向到“/index.php/favicon.ico”,客户端:XX.XX.XXX。 XX,服务器:my-domain.com,请求:“GET /favicon.ico HTTP/1.1”,主机:“my-domain.com”

我在安装 Joomla 后运行了这些命令:

sudo chmod -R 755 /var/www
sudo chown -R www-data:www-data /var/www

(网站在/var/www/my-domain.com/public

编辑:

我变了

try_files $uri $uri/ /index.php$request_uri;

到:

try_files $uri $uri/ /index.php$request_uri =404;

为了摆脱无限循环。不,我当然会收到 404 错误,这意味着它找不到正确的文件。我仍然不明白如何解决这个问题。

【问题讨论】:

  • 嗨,欢迎来到 Stack Overflow。很高兴知道您解决了自己的问题。请将您的解决方案发布为答案并将其标记为accepted,这样它也可能对未来的访问者有所帮助。

标签: php nginx http-status-code-404 joomla3.0 web-frontend


【解决方案1】:

我变了

try_files $uri $uri/ /index.php$request_uri;

到:

try_files $uri $uri/ /index.php$request_uri =404;

为了摆脱无限循环。不,我当然会收到 404 错误,这意味着它找不到正确的文件。我仍然不明白如何解决这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-05
    • 1970-01-01
    • 2012-06-15
    • 2015-06-15
    • 1970-01-01
    • 2012-03-30
    • 2013-12-22
    • 2017-09-24
    相关资源
    最近更新 更多