wordpress跳转主页问题

Sand的IT窝 2014-07-01 11:53:49
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.
求解答,万分感激!
...全文
553 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ily_mtics 2014-07-02
  • 打赏
  • 举报
回复
好吧 我看不懂 毕竟我是小白
  • 打赏
  • 举报
回复
location / { index wp-login.php test.php index.php index.html index.htm; }

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧