AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 400 Bad Request |
|
---|---|
blessmr |
blessmr 发表于 2016-03-31 05:52:51
刚建立的网站 出现400错误 清理缓存后恢复 但是多浏览几个页面后 又会出现! 求姿势!!!
点赞,加油! (0分)
2016-03-31 05:52:51 1
|
blessmr |
回复
2016-03-31 05:53:38 2
|
blessmr |
root@Kvmla-201603301967:/usr/local/nginx/conf# cat nginx.conf
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 pro cess. 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 applicatio n/x-javascript application/xml application/rss+xml application/xhtml+xml applica tion/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 118.184.23.182; index index.html index.htm index.php; root /home/wwwroot/index/web; if ( $host != '118.184.23.182' ) { return 400; } 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; } }
回复
2016-03-31 06:01:41 3
|
amysql |
域名是否都绑定好,非www与www域名。
回复
2016-04-01 16:14:35 4
AMH面板 - 好用高效低占用、安全可靠极稳定 |
blessmr |
回复
2016-04-02 03:15:59 5
|