Utilisez Firefox et Safari
Le serveur utilise NGINX
La configuration originale de www.xx.com existe déjà
Ajouter la configuration m.xx.com
Il est normal d'accéder directement à http://m.xx.com/index.html
Visitez http://m.xx.com et voyez depuis l'outil de débogage du navigateur que le cache de index.html de www.xx.com est chargé
server{
listen 80;
server_name www.xx.com;
root /Users/jim/Sites/xx/public;
index index index.html index.php index.htm;
location / {
if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?s= last;
rewrite ^(.*)$ /index.php?s= last;
break;
}
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
server{
listen 80;
server_name m.xx.com;
root /Users/monk/Sites/xx/mobile;
index index index.html index.php index.htm;
location / {
if (!-e $request_filename) {
rewrite ^/index.php(.*)$ /index.php?s= last;
rewrite ^(.*)$ /index.php?s= last;
break;
}
}
location ~ \.php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
Il devrait s'agir d'un problème de configuration, merci de le poster et d'y jeter un oeil