awsでwordpress / ec-cubeを並行して動かしたいです。
webサーバーはnginxを利用します。
ディレクトリ構成は以下の通りです。
/home/xxx/www/wordpress
/home/xxx/www/eccube
現在のnginx.confは以下のような設定です。
nginx
1server { 2 listen 80 default_server; 3 listen [::]:80 default_server; 4 server_name localhost; 5 root /home/xxx/www/wordpress; 6 7location / { 8 try_files $uri $uri/ @wordpress; 9 } 10 11location ~ \.php$ { 12 root /home/xxx/www/wordpress; 13 fastcgi_pass 127.0.0.1:9000; 14 fastcgi_index index.php; 15 fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; 16 include fastcgi_params; 17 fastcgi_read_timeout 300; 18 } 19 20 location @wordpress { 21 fastcgi_index index.php; 22 fastcgi_split_path_info ^(.+\.php)(.*)$; 23 fastcgi_pass 127.0.0.1:9000; 24 fastcgi_param SCRIPT_FILENAME /home/xxx/www/wordpress/index.php; 25 include fastcgi_params; 26 }
ここに、@eccubeのような形で、eccubeのインストール画面を表示させるような処理を描きたいのですが、どなたかご教授いただけないでしょうか。
宜しくお願いします。
追記
もしディレクトリ構成自体に問題があって、「これじゃ動かそうにも動かせないよ」という事でしたら、その旨、ご指摘いただけるとありがたいです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/05/19 08:40
2017/05/19 16:21