2014-01-23 2 views
0

nginx powered server에 Joomla를 설치했습니다. 모든 것은 초기 계획대로 작동했으며 서버에 Joomla를 설치했습니다. 심지어 사용자 정의 테마를 설정하십시오.새로 고침하는 동안 Joomla 및 nginx 페이지가 중단됩니다.

사이트의 페이지를 새로 고침 할 때 문제가 발생합니다 (관리자/프런트 엔드 모두). 사이트 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의 설정인가? 누군가 제발 나를 밝힐 수 있습니까?

답변

1

application/x-javascr$application/x-javascript;이어야합니다.

사이드 노트 : http://docs.joomla.org/Nginx의 설명서에이 오류가있는 것으로 보입니다. 단어 줄 바꿈을 사용할 수없고 줄 끝이 잘린 경우 편집기에서 화면 출력과 유사하므로 문서 편집기 대신 복사하여 붙여 넣기 오류가 발생할 수 있습니다.

관련 문제