wordpress跳转主页问题
nginx配置文件如下:
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm index.php;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /opt/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
server {
listen 8080;
server_name 172.21.12.33:8080;
root /opt/nginx/html/wordpress;
location / {
index wp-login.php test.php index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
# root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /opt/nginx/html/wordpress$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 8081;
server_name 172.21.12.33:8081;
root /usr/share/phpmyadmin;
location / {
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
# root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 8082;
server_name 172.21.12.33:8082;
root /opt/nginx/html/wordpress;
location / {
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
# root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /opt/nginx/html/wordpress$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 8083;
server_name 172.21.12.33:8083;
root /opt/nginx/html/wordpress-CN-3.9/wordpress;
location / {
index wp-login.php test.php index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
# root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /opt/nginx/html/wordpress-CN-3.9/wordpress$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 8084;
server_name 172.21.12.33:8084;
root /opt/nginx/html/wordpress-CN-3.9/wordpress;
location / {
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
# root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /opt/nginx/html/wordpress-CN-3.9/wordpress$fastcgi_script_name;
include fastcgi_params;
}
}
电脑上安装了wordpress中文版和英文版,8080端口跳转到英文登录界面没问题,8081跳转到phpmyadmin没问题,8083跳转到中文登录界面没问题。唯独8082和8084分别跳转到wordpress的主页就显示空白页面,浏览器上方地址自动跳转到80.
求解答,万分感激!