0
我安裝十月CMS在我的Nginx服務器,安裝好。前端工作與index.php和風格是正確的。但後端不。它只是給了我一個404頁面錯誤。我已經正確地關注了文檔中的所有內容,嘗試了不同的網站 - 可用配置文件,並且它們似乎無法正常工作,但是發送了502,我也檢查了日誌,並且沒有任何內容。十月CMS /後端未找到404與Nginx
這是我one3.com配置文件:
server {
listen 80;
root /storage/www/one3community.com;
index index.php index.html index.htm;
listen 443;
ssl on;
ssl_certificate /ssl_keys/one3community.com/public.pem;
ssl_certificate_key /ssl_keys/one3community.com/private.pem;
# Make site accessible from http://localhost/
server_name www.one3community.com;
location/{
try_files $uri $uri.html $uri/ @extensionless-php;
index index.php;
}
location @extensionless-php {
rewrite ^(.*)$ $1.php last;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php5.5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
請問您可以添加轉換後的nginx文件嗎? –