質問 > フロント機能 > nginx1.10+php7.0でインストール後ログイン画面など表示されず |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
be-s |
投稿日時: 2017/4/18 18:47
対応状況: −−−
|
一人前 ![]() ![]() 登録日: 2016/2/2 居住地: São Paulo 投稿: 115 |
Re: nginx1.10+php7.0でインストール後ログイン画面など表示されず 助言ありがとうございます。
html/.htaccess app/.htaccess の中身見て https://winginx.com/ja/htaccess でnginx用の設定分に変更しました。 default.confに下記文を追加しましたがやはり管理画面やログイン画面にアクセスできません。404エラーになります。 設定がおかしいのでしょうか? 下記default.conf設定分です --------------------------------------------- server { listen 80; server_name localhost; charset utf-8; root /usr/share/nginx/html; index index.php index.html index.htm; location /usr/share/nginx/html/***/html/ { if (!-e $request_filename){ rewrite ^(.*)$ /index.php break; } } location /usr/share/nginx/html/***/app/ { deny all; } location / { root /usr/share/nginx/html; index index.php index.html index.htm; try_files $uri $uri/ /index.php?u=$uri&$args; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED /usr/share/nginx/html$fastcgi_path_info; } error_page 404 /404.html; location = /40x.html { } } |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
![]() |
be-s | 2017/4/18 10:17 |
![]() |
umebius | 2017/4/18 10:43 |
» ![]() |
be-s | 2017/4/18 18:47 |
![](images/pixel.gif)