我部署一个基于Yii的应用程序,我们通过ajax发送查询string来search产品,在本地的apache环境中,这些string被处理,但是在我们的生产服务器上运行nginx查询string后,'&'被忽略 我们的查询string示例是 /en_GB/site/products?question1=female&question4=skincare&question5=60 发送时,我们遇到了500错误 Error 500 Undefined index: question5 CHttpException Your request is invalid. 我们的nginxconfiguration包含 location / { try_files $uri $uri/ /index-prod.php; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_buffer_size 128k; fastcgi_buffers 256 16k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; } 任何帮助
我需要在nginx上为wildfly服务器设置虚拟主机。 我早些时候使用Apache虚拟主机,我想在nginx中做类似的设置我已经按照这篇文章http://nginx.org/en/docs/http/request_processing.html和http:// developer-should- know.tumblr.com/post/112512171397/nginx-serving-static-content-and-java-application 这是我的conf文件 server { listen 80; server_name www.example.com; access_log logs/www.example.com_access.log; error_log logs/www.example.com_error.log; location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8080; root /var/www/www.example.com/public_html; index index.html ; try_files $uri $uri/ =404; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } 在我的根目录我有index.html <html> […]
我有个问题。 当我用https打开我的网站时,我在error.log中看到错误消息: 2015/11/03 19:47:21 [error] 7799#0: recv() failed (111: Connection refused) while requesting certificate status, responder: ocsp2.globalsign.com 2015/11/03 19:47:21 [error] 7799#0: OCSP responder prematurely closed connection while requesting certificate status, responder: ocsp2.globalsign.com 我该如何解决? BR
我们有用于FB共享的规范样式的URL。 Facebook可以抓取这些页面以获得所需的信息…这些页面生成一个专门的图像,供用户共享。 用户可以指定要在此图像上显示的string。 Samwise Gamgee编码像 Samwise%20Gamgee 山姆&frodo sam%20%26%20frodo 问题是当有人点击这些URL时,&符号%26被nginx解码 这个… www.example.com/path/Brian%26Bob%26Sally 成为… www.example.com/path/Brian?Bob%26Sally 不知道为什么,但唯一的第一个&符号正在被重写。 任何想法,为什么这可能是? Nginx甚至有能力吗?
我已经有银河系CMS在NGINX下运行了。 一切正常,直到我尝试修改CMS中的页面。 Tiny MCE编辑器由于某些原因而不工作。 tiny_mce_gzip.php正确下载(200),但我看到在我的控制台中的错误“Uncaught ReferenceError:tinyMCE未定义”。 这是我的银河系CMS的NGINXconfiguration文件: location / { try_files $uri @silverstripe; } location @silverstripe { fastcgi_keep_conn on; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_read_timeout 120; fastcgi_connect_timeout 60; fastcgi_send_timeout 120; fastcgi_buffer_size 64k; fastcgi_buffers 4 65k; fastcgi_busy_buffers_size 128k; fastcgi_param SCRIPT_FILENAME $document_root/framework/main.php; fastcgi_param SCRIPT_NAME /framework/main.php; fastcgi_param QUERY_STRING url=$uri&$args; } location ~* \.php$ { fastcgi_keep_conn […]
我正在使用haproxy和nginx来负载平衡,以及保护(通过Nginx的nginx)我的networking服务器。 Haproxy工作正常,但是通过nginx发送它的一分钟,它将所有内容默认为默认的后端,而不是检查我们的webmail后端。 在nginx错误和访问日志中,它显示正确的主机名,但仍然被发送到default_backend bk_comweb而不是use_backend bk_webmail。 有一些我失踪,但无法通过树木看到森林,任何帮助将不胜感激! haproxy.conf重要行: frontend ft_protection bind 10.0.5.15:80 mode http option http-server-close #DDOS protection #Use General Purpose Couter (gpc) 0 in SC1 as a global abuse counter #Monitors the number of request sent by an IP over a period of 10 seconds stick-table type ip size 1m expire 1m store gpc0,http_req_rate(10s),http_err_rate(10s) tcp-request […]
我希望有人能够引导我如何追踪这个问题的正确方向。 我最近在服务器上安装了HHVM,并使用PHP作为后备。 从那以后,我一直在WPpipe理问题。 当我尝试发布或更新一篇文章,我的连接超时在2米,在我的NGINX错误日志中,我看到这个: recv() failed (104: Connection reset by peer) while reading response header from upstream, client 我弄不明白的是为什么它发生在我身上,而不是我的服务器pipe理服务或者我的作家谁都试过,没有这个问题。 我已经做了traceroute和ping到我的服务器,并没有显示延迟问题。 我尝试了不同的浏览器,我改变了我的DNS,而且我尝试了通过VPN连接,我仍然有同样的问题。 除此之外,我没有任何问题。 这是一个拥有大量资源的专用服务器,只有在安装HHVM之后才能启动。 pipe理面板变得非常缓慢,直到Redis安装,但这并没有帮助超时的问题。 我最初没有超时,但是现在我不能在没有超时的情况下发布或更新,但是数据确实保存到了数据库中。 有没有其他的方法可以找出问题的症结所在,或者有什么问题可以解决?
我在/etc/nginx/conf.d/下有2个nginx的conf文件ssl.conf和default.conf 。 第一个文件处理传入的http请求。 它将http请求重写为https。 ssl.conf文件处理基于https的请求。 下面是, default.conf样子 server { listen 80 default_server; server_name abc.example.com 123-abc.example.com; port_in_redirect off; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; set_real_ip_from 127.0.0.1; set_real_ip_from 10.0.0.0/8; real_ip_header X-Forwarded-For; real_ip_recursive on; location /about { root /usr/share/nginx/html; add_header X-Frame-Options "DENY"; try_files $uri /about.html; } location /webapi { add_header X-Frame-Options "DENY"; } location / […]
我想在我的Django服务器上用gunicorn和Nginx运行主pipe,但是当我运行“supervisord”时,主pipe日志说: 2015-11-06 23:23:36,746 INFO daemonizing the supervisord process 2015-11-06 23:23:36,749 INFO supervisord started with pid 13766 2015-11-06 23:23:37,758 INFO spawned: 'gunicorn' with pid 13773 2015-11-06 23:23:37,767 INFO exited: gunicorn (exit status 127; not expected) 2015-11-06 23:23:38,771 INFO spawned: 'gunicorn' with pid 13774 2015-11-06 23:23:38,802 INFO exited: gunicorn (exit status 127; not expected) 2015-11-06 23:23:40,807 INFO […]
我在用naxsi编译的nginx服务器中出现这个错误 nginx:[emerg]无法构buildwlr_url_hash,你应该增加wlr_url_hash_bucket_size:512 nginx:[emerg] $ URL hashtable init在/etc/nginx/nginx.conf:87中失败nginx:[emerg] WhiteList哈希构build失败/ etc /nginx/nginx.conf:87 nginx:configuration文件/etc/nginx/nginx.conftesting失败 wlr_url_hash或wlr_url_hash_bucket_size在http,服务器或位置块中似乎不是有效的nginx指令 如何增加wlr_url_hash_bucket_size?