2016-04-15 39 views
0

我正在嘗試使用php5-fpm和nginx在joomla3上創建網站。它工作,但只有主頁面。其他帶有.html擴展名的頁面如'/reports/april.html'不起作用,它會返回404 not found錯誤。我猜想在我的nginx配置文件中錯過了一些東西,請給我一個提示。用php5-fpm爲joomla站點配置nginx

server{ 
    server_name acbr.loc; 
    access_log /var/log/nginx/acbr.access.log; 
    error_log /var/log/nginx/acbr.error.log; 

    root /home/oleshko/design/acbr; 

    location ~ \.php$ { 
     try_files $uri = 404; 
     include fastcgi_params; 
     fastcgi_pass unix:/var/run/php5-fpm.sock; 
     fastcgi_index index.php; 
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
    } 

# порядок индексов  
    location/
    { 
     index index.php index.html index.htm; 
    }  
} 

回答

0

docs.joomla.org/Nginx 斷原因)))