AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 安装wordpress之后无法打开网站,请教高手解决 |
|
---|---|
popvane |
popvane 发表于 2013-11-23 04:25:01
如题,安装AMH之后,一切正常,默认页面有显示,但我安装wordpress之后,打开网站就变成了400 Bad Request
请教大神们帮忙解决
点赞,加油! (0分)
2013-11-23 04:25:01 1
|
ali |
坐等高手
回复
2013-11-23 07:14:24 2
|
root |
看一下你绑定域名了没!!!还有就是看下使用了什么规则!
回复
2013-11-23 10:13:19 3
|
popvane |
域名有绑定,且域名能ping通,规刚用的是那个wordpress.conf
回复
2013-11-23 11:31:41 4
|
tanyuxiang |
有没有自己改过什么
静态文件能不能访问 放个php探针看看 然后贴nginx配置 amh cat_nginx
回复
2013-11-23 12:10:04 5
|
popvane |
本帖最后由 popvane 于 2013-11-23 12:20 编辑
user www www; worker_processes auto; error_log /home/wwwroot/index/log/nginx_error.log crit; pid /usr/local/nginx/logs/nginx.pid; #Specifies the value for maximum file descriptors that can be opened by this process. worker_rlimit_nofile 51200; events { use epoll; worker_connections 51200; } http { include mime.types; default_type application/octet-stream; server_names_hash_bucket_size 128; client_header_buffer_size 4k; large_client_header_buffers 4 4k; client_max_body_size 50m; sendfile on; tcp_nopush on; keepalive_timeout 60 60; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 16k; fastcgi_buffers 16 16k; fastcgi_busy_buffers_size 16k; fastcgi_temp_file_write_size 16k; fastcgi_intercept_errors on; tcp_nodelay on; server_tokens off; gzip on; gzip_min_length 1000; gzip_proxied expired no-cache no-store private auth; gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml application/rss+xml application/xhtml+xml application/atom_xml; gzip_disable "MSIE [1-6].(?!.*SV1)"; log_format access '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $http_x_forwarded_for'; include vhost/*.conf; server { listen 8888; server_name 76.105.226.166; index index.html index.htm index.php; root /home/wwwroot/index/web; fastcgi_buffer_size 4k; fastcgi_buffers 8 4k; fastcgi_busy_buffers_size 4k; gzip off; location ~ .*\.php$ { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log /home/wwwroot/index/log/access.log combined; error_log /home/wwwroot/index/log/error.log crit; } server { listen 80 default; return 400; } } 我自己没有做任何改动
回复
2013-11-23 12:19:24 6
|
tanyuxiang |
静态文件和探针是什么结果
再看看/usr/local/nginx/conf/vhost里面对应域名的配置 以及/usr/local/nginx/conf/rewrite里面你选择的规则
回复
2013-11-23 13:44:56 7
|
amysql |
amh 通常是域名没绑定成功才会返回400 Bad Request
另外、面板上也有一键自动建站模块可以试试。
回复
2013-11-23 17:08:49 8
AMH面板 - 好用高效低占用、安全可靠极稳定 |