# Appadmin
server {
listen 80 ;
server_name appadmin.fecshoptest.com;
root "D:/PhpStudy/www/fecshop/appadmin/web";
server_tokens off;
include none.conf;
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
location ~ .*\.(js|css)?$ {
expires 12h;
}
}
# AppFront
server {
listen 80 ;
server_name appfront.fecshoptest.com appfront.fecshoptest.es;
root "D:/PhpStudy/www/fecshop/appfront/web";
server_tokens off;
include none.conf;
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ /sitemap.xml
{
if ($host ~ .*appfront.fecshoptest.es) {
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;
}
}
网站首页显示正常,是英文。点击“中文”,却跳转到后台管理的登录页面。请问是哪儿的错误?
我只做了这两项域名配置。如果只保留# AppFront以下部分,则一切正常。