バージョン選択

フォーラム

メニュー

オンライン状況

189 人のユーザが現在オンラインです。 (178 人のユーザが フォーラム を参照しています。)
登録ユーザ: 2
ゲスト: 187
oxbs u888legal もっと...

サイト内検索

質問 > その他 > nginxを使ったサブディレクトリ運用でのリダイレクト処理

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
umanari145
投稿日時: 2016/8/3 13:57
対応状況: −−−
新米
登録日: 2016/8/3
居住地:
投稿: 4
nginxを使ったサブディレクトリ運用でのリダイレクト処理
webサーバーにnginxを使い、あるドメイン(仮にexample.comとします。)のサブディレクトリでECCUBEを動かしたいと考えております。

ルートディレクトリが/var/www/html/だとすると
/var/www/html/eccubeと配置し、
トップページ http://example.com/eccube
商品一覧ページ http://example.com/eccube/product/list
などのURLでアクセスしたいと考えておりますが、この場合の対処法(eccubeの中の処理あるいはhtaccessやnginxのリダイレクトの書き換え方など)が
わかる方がいましたら教えていただければ幸いです。

現時点では他のスレッド(http://xoops.ec-cube.net/modules/newbb/viewtopic.php?viewmode=thread&topic_id=16523&forum=14&post_id=73015#forumpost73015)にありました
http://amidaike.hatenablog.com/entry/2015/07/18/151143の方法
index.php、.htaccess、robot.txtをeccube直下に置き、index.php、path.ymlを書き換える方法も試してみましたが、
トップページ以外は404になってしまいます。
他のファイルはそのままです。

nginxの設定は下記のように書いております。

location ~ /eccube/(.*)$ {
root /var/wwww/html;
include fastcgi_params;
try_files $uri $uri/ /index.php?$uri&$args;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
error_log /var/log/nginx/eccube.error.log notice;
access_log /var/log/nginx/eccube.access.log;
}

環境は以下の通りです。
CentOS 7.1
ECCUBE 3.0.10
PHP 5.4
MariaDB 5.5
nginx/1.9.3
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » nginxを使ったサブディレクトリ運用でのリダイレクト処理 umanari145 2016/8/3 13:57
     Re: nginxを使ったサブディレクトリ運用でのリダイレクト処理 shhirose 2016/8/8 12:52
       Re: nginxを使ったサブディレクトリ運用でのリダイレクト処理 umanari145 2016/8/9 22:04
         Re: nginxを使ったサブディレクトリ運用でのリダイレクト処理 shhirose 2016/8/10 10:58
           Re: nginxを使ったサブディレクトリ運用でのリダイレクト処理 umanari145 2016/8/10 15:08
             Re: nginxを使ったサブディレクトリ運用でのリダイレクト処理 shhirose 2016/8/10 16:23
               Re: nginxを使ったサブディレクトリ運用でのリダイレクト処理 umanari145 2016/8/11 16:43

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は90,231名です
総投稿数は110,340件です

投稿数ランキング

1
seasoft
7369
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1688
8
red
1571
9
mcontact
1356
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.