打开http://apphtml5.fecshoptest.com/ 显示白页,nginx没有error日志,另外测试数据我没有导入(也就是http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-config.html 这个文档中步骤5以后都没有执行)
浏览器的console显示http 是200状态
hosts绑定:
127.0.0.1 appfront.fecshoptest.com
nginx配置:
server {
listen 80 ;
server_name appfront.fecshoptest.com appfront.fecshoptest.es;
root /root/fecshop/fecshop/appfront/web;
server_tokens off;
index index.php index.html index.htm;
access_log /root/fecshop/logs/access.log main;
error_log /root/fecshop/logs/error.log;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
location ~ /sitemap.xml{
if ($host ~ .*appfront.es.fecshop.com) {
rewrite ^/sitemap\.xml /sitemap_es.xml last;
}
}
location /fr/ {
index index.php;
if (!-e $request_filename){
rewrite . /fr/index.php last;
}
}
location /es/ {
index index.php;
if (!-e $request_filename){
rewrite . /es/index.php last;
}
}
location /cn/ {
index index.php;
if (!-e $request_filename){
rewrite . /cn/index.php last;
}
}
location /de/ {
index index.php;
if (!-e $request_filename){
rewrite . /de/index.php last;
}
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
location ~ .*\.(js|css)?$ {
expires 12h;
}
}