Joomla和nginx页面在刷新时挂起

时间:2014-01-23 06:04:41

标签: mysql joomla nginx

我一直在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安装的问题吗?有人可以开导我吗?

1 个答案:

答案 0 :(得分:1)

application/x-javascr$应为application/x-javascript;

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