2016-06-20 17 views
0

10月のCMSをNginxサーバーにインストールしました。フロントエンドはindex.phpで動作し、スタイルは正しいです。ただし、バックエンドはありません。それは私に404ページのエラーを与えるだけです。私はドキュメントのすべてを正しく追跡し、別のサイトで使用可能な設定ファイルを試してみたが、動作していないようだが、ログを確認した502を与えている。10月CMS /バックエンドが見つからない404 Nginxで

これは私のone3.comの設定ファイルである:nginxのへ

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; 
    } 
} 

答えて

0

変換されたデフォルトのApacheの.htaccessファイル。サイトに読み込まれました - 利用可能な.confファイルはnginxを再起動しました。今稼働している。

**を使用すると、変換後のnginxのファイルを追加してもらえ

+1

**そうでない場合は、ファイルのダウンロードが発生しnginxのファイルの最後ですべてのブレークを交換しなければなりませんでしたか? –

関連する問題