【问题标题】:Joomla and nginx page hang while refreshingJoomla 和 nginx 页面在刷新时挂起
【发布时间】:2014-02-13 13:18:59
【问题描述】:

我一直在 nginx 驱动的服务器上安装 Joomla。一切都按照最初的计划进行,我已经在服务器上安装了 Joomla。甚至设置自定义主题。

当我刷新站点中的页面时出现问题(管理员/前端)。您可以预览网站here。

我还可以看到刷新命中时某些 js/css 文件未正确传递。它在 chrome 开发人员选项卡中显示“待定”。

以下是网站的 nginx 配置

server {
        listen   80; ## listen for ipv4; this line is default and implied
        #listen   [::]:80 default ipv6only=on; ## listen for ipv6

        root /var/apps/nickies/public_html;
    # index index.html index.htm;
    index index.php index.html index.htm default.html default.htm;

        # Make site accessible from http://localhost/
        server_name nickies.proitzen.com;
    #fastcgi_buffers 8 16k;
       # fastcgi_buffer_size 32k;
        #fastcgi_read_timeout 180;

#   gzip on;
#gzip_http_version 1.1;
#gzip_comp_level 6;
#gzip_min_length 1100;
#gzip_buffers 4 8k;
#gzip_types text/plain application/xhtml+xml text/css application/xml application/xml+rss text/javascript application/javascript application/x-javascr$
#  gzip_proxied     any;
# gzip_disable     "MSIE [1-6]\.";

    location / {
                try_files $uri $uri/ /index.php?$args;
        }

    # deny running scripts inside writable directories
        location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
                return 403;
                error_page 403 /403_error.html;
        }

    location ~ \.php$ {
            fastcgi_pass  127.0.0.1:9000;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         #   include /etc/nginx/fastcgi.conf;
        }

    # caching of files 
        location ~* \.(ico|pdf|flv)$ {
                expires 1y;
        }

        location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
                expires 14d;
        }
}

这可能是 nginx 或 Joomla 安装的问题吗?有人可以请教我吗?

【问题讨论】:

    标签: mysql joomla nginx


    【解决方案1】:

    application/x-javascr$ 应该是 application/x-javascript;。

    旁注:http://docs.joomla.org/Nginx 的文档似乎包含此错误。当自动换行被禁用并且行尾被截断时,它类似于编辑器中的屏幕输出,因此这可能是文档编辑器的复制和粘贴错误。

    【讨论】:

      猜你喜欢
      • 2021-01-04
      • 2021-07-11
      • 2012-12-13
      • 2021-03-08
      • 1970-01-01
      • 1970-01-01
      • 2020-07-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多