サブディレクトリwww.mysite.com/shop/でLemonstandを実行しています
レモンスタンドのロケーションルールは次のとおりです。
# Lemonstand
location /shop {
root /home/sites/mysite.com/public_html/shop/;
index index.php;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_param SCRIPT_NAME index.php;
fastcgi_param QUERY_STRING url=$uri&$args;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_buffer_size 32k;
fastcgi_buffers 4 32k;
fastcgi_busy_buffers_size 64k;
}
mysite.com/shopのページにアクセスできます。
ショップのすべてのURLは次のようになります。
mysite.com/shop/category/freight
mysite.com/shop/products/dog-toy
実際にページ上にある場合、それらは次のように構成されています。
mysite.com/category/freight
mysite.com/products/dog-toy
そして奇妙なことに、ブラウザに正しいURLを貼り付けても、他のページが存在しないかのように、ベースの/shop/ページしか表示されません。誰か助けてもらえますか?