<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Nginx Forum - Other discussion</title>
<description>Any other nginx or tech related discussion may be entered here.</description><link>http://forum.nginx.org/list.php?15</link><lastBuildDate>Sat, 18 May 2013 22:27:08 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?15,238443,238443#msg-238443</guid>
<title>For Http range request ie 206 , custom headers are blocked in case of x-redirect chain</title><link>http://forum.nginx.org/read.php?15,238443,238443#msg-238443</link><description><![CDATA[I came across this strange behavior when we wanted to get Etag propagated through X-redirect chain as part of Http response for Range request ie Http 206.It seems nginx filters out any additional costume headers / tmp variable as part of final response through x-redirect for non-200 response.<br />Kindly suggest workaround this issue.<br /><br />Here's a Log data under debug mode for Normal vs Range request clearing showing custom headers being filter out.<br /><br />Without Range :<br /><br />2013/04/16 04:08:22 [debug] 23457#0: *385 event timer del: 11: 1366110562151<br />2013/04/16 04:08:22 [debug] 23457#0: *385 event timer add: 11: 300000:1366110802151<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http run request: &quot;get_file?path=/Shared/Documents/loader.html&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http upstream check client, write event:1, &quot;/v2_0/get_file&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http upstream recv(): -1 (11: Resource temporarily unavailable)<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http upstream request: &quot;/v2_0/get_file?path=/Shared/Documents/loader.html&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http upstream process header<br />2013/04/16 04:08:22 [debug] 23457#0: *385 malloc: 000000000E8621C0:32768<br />2013/04/16 04:08:22 [debug] 23457#0: *385 recv: fd:11 1229 of 32646<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy status 200 &quot;200 OK&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Last-Modified: Tue, 16 Apr 2013 09:47:42 GMT&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Etag: 0853bce8-bf84-4cc4-9c7e-d4182bafafad&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Date: Tue, 16 Apr 2013 11:08:22 GMT&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Server: CherryPy/3.1.2&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Connection: close&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Content-Disposition: attachment;filename=&quot;loader.html&quot;&quot;<br /><br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script complex value<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script set $compressed<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script complex value<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script set $serve_decompressed<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script complex value<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script var: &quot;0853bce8-bf84-4cc4-9c7e-d4182bafafad&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script set $etag<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script complex value<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script var: &quot;Tue, 16 Apr 2013 09:47:42 GMT&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script set $last_modified<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script complex value<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script var: &quot;205&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script set $expected_size<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script complex value<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script var: &quot;205&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script set $actual_size<br />--<br />2013/04/16 04:08:22 [debug] 23457#0: *385 malloc: 000000000E906930:32768<br />2013/04/16 04:08:22 [debug] 23457#0: *385 posix_memalign: 000000000E90E940:4096 @16<br />2013/04/16 04:08:22 [debug] 23457#0: *385 recv: fd:11 350 of 32638<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy status 200 &quot;200 OK&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Server: Apache-Coyote/1.1&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Accept-Ranges: bytes&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Content-Length: 205&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Date: Tue, 16 Apr 2013 11:08:22 GMT&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header: &quot;Connection: close&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http proxy header done<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script var: &quot;0853bce8-bf84-4cc4-9c7e-d4182bafafad&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script var: &quot;0853bce8-bf84-4cc4-9c7e-d4182bafafad&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 http script var: &quot;Tue, 16 Apr 2013 09:47:42 GMT&quot;<br />2013/04/16 04:08:22 [debug] 23457#0: *385 HTTP/1.1 200 OK<br />Server: nginx/1.0.4<br />Date: Tue, 16 Apr 2013 11:08:22 GMT<br />Content-Type: text/html;charset=ISO-8859-1<br />Connection: keep-alive<br />Content-Disposition: attachment;filename=&quot;loader.html&quot;<br />Accept-Ranges: none<br />Content-Length: 205<br />Etag: 0853bce8-bf84-4cc4-9c7e-d4182bafafad<br />Last-Modified: Tue, 16 Apr 2013 09:47:42 GMT<br />=================================================================================<br /><br /><br />With Range :<br /><br />2013/04/16 04:07:35 [debug] 23457#0: *373 event timer del: 11: 1366110515893<br />2013/04/16 04:07:35 [debug] 23457#0: *373 event timer add: 11: 300000:1366110755894<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http run request: &quot;/v2_0/get_file?path=/Shared/Documents/loader.html&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http upstream check client, write event:1, &quot;/v2_0/get_file&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http upstream recv(): -1 (11: Resource temporarily unavailable)<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http upstream request: &quot;/v2_0/get_file?path=/Shared/Documents/loader.html&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http upstream process header<br />2013/04/16 04:07:35 [debug] 23457#0: *373 malloc: 000000000E8621C0:32768<br />2013/04/16 04:07:35 [debug] 23457#0: *373 recv: fd:11 1258 of 32646<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http proxy status 200 &quot;200 OK&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http proxy header: &quot;Etag: 0853bce8-bf84-4cc4-9c7e-d4182bafafad&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http proxy header: &quot;Date: Tue, 16 Apr 2013 11:07:35 GMT&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http proxy header: &quot;Server: CherryPy/3.1.2&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http proxy header: &quot;Connection: close&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http proxy header: &quot;Content-Disposition: attachment;filename=&quot;loader.html&quot;&quot;<br /><br /><br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script complex value<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script set $compressed<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script complex value<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script set $serve_decompressed<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script complex value<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script var: &quot;0853bce8-bf84-4cc4-9c7e-d4182bafafad&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script set $etag<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script complex value<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script var: &quot;Tue, 16 Apr 2013 09:47:42 GMT&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script set $last_modified<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script complex value<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script var: &quot;205&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script set $expected_size<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script complex value<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script var: &quot;205&quot;<br />2013/04/16 04:07:35 [debug] 23457#0: *373 http script set $actual_size<br /><br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy status 206 &quot;206 Partial Content&quot;<br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy header: &quot;Server: Apache-Coyote/1.1&quot;<br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy header: &quot;Accept-Ranges: bytes&quot;<br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy header: &quot;Content-Range: bytes 10-20/205&quot;<br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy header: &quot;Content-Length: 11&quot;<br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy header: &quot;Date: Tue, 16 Apr 2013 11:05:18 GMT&quot;<br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy header: &quot;Connection: close&quot;<br />2013/04/16 04:05:18 [debug] 23457#0: *352 http proxy header done<br />2013/04/16 04:05:18 [debug] 23457#0: *352 HTTP/1.1 206 Partial Content<br />Server: nginx/1.0.4<br />Date: Tue, 16 Apr 2013 11:05:18 GMT<br />Content-Type: text/html;charset=ISO-8859-1<br />Connection: keep-alive<br />Content-Disposition: attachment;filename=&quot;loader.html&quot;<br />Accept-Ranges: none<br />Content-Range: bytes 10-20/205<br />Content-Length: 11]]></description>
<dc:creator>yogeshorai</dc:creator>
<category>Other discussion</category><pubDate>Thu, 18 Apr 2013 00:44:23 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,238012,238012#msg-238012</guid>
<title>1.3.15 has strange new bug in http_stub_status module</title><link>http://forum.nginx.org/read.php?15,238012,238012#msg-238012</link><description><![CDATA[Cannot post to nginx trac right now, I think the trac db index is corrupted, so will post here for now.<br /><br />The http_stub_status module seems broken in 1.3.15 (was fine in 1.3.14)<br /><br />We were using 1.3.14 without any problems, upgraded to 1.3.15 this past weekend and now see very strange surges in our statistics before they return to normal.<br /><br />Investigated the output from http-stub-status-module and the numbers are erratic.<br />The accepts/handled/requests counters are broken.<br /><br />Here are three reading done in a row, in less than one minute.<br />NOTE THE SURGE IN THE MIDDLE SET which obviously are incorrect numbers.<br /><br />Active connections: 27<br />server accepts handled requests<br />782806 782806 1463305<br />Reading: 0 Writing: 1 Waiting: 26<br /><br />Active connections: 32<br />server accepts handled requests<br />9391043 9391043 17594034 &lt; &lt; &lt; &lt; - - - - ? ? ? ?<br />Reading: 1 Writing: 1 Waiting: 30<br /><br />Active connections: 67<br />server accepts handled requests<br />782915 782915 1463531<br />Reading: 0 Writing: 1 Waiting: 66]]></description>
<dc:creator>_ck_</dc:creator>
<category>Other discussion</category><pubDate>Tue, 02 Apr 2013 01:00:25 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,237789,237789#msg-237789</guid>
<title>nginx - rewrite only www to non-www</title><link>http://forum.nginx.org/read.php?15,237789,237789#msg-237789</link><description><![CDATA[I'm trying to redirect `www.example.com` to `example.com` This is my nginx rewrite rule:<br /><br />server {<br />listen 80;<br />server_name www.upinbangalore.com;<br />return 301 http://upinbangalore.com$request_uri;<br />}<br /><br />server {<br /><br />listen 80;<br />server_name upinbangalore.com;<br /><br />[...]<br /><br />The redirection for **www to non-www** is working fine. But the problem is the other sub domain `mail.example.com` which I've set **CNAME records** to the mail server is also getting redirected to `example.com`<br /><br />How could I avoid this?<br /><br />This is my DNS setup in Linode.<br /><br />A/AAAA Records<br />Hostname IP Address TTL Options<br />xxx.xxx.xxx.xxx Default Edit | Remove<br />www xxx.xxx.xxx.xxx Default Edit | Remove<br /><br />CNAME Records<br />Hostname Aliases to TTL Options<br />mail go.domains.live.com Default Edit | Remove<br /><br /><br />Thanks!]]></description>
<dc:creator>rnk</dc:creator>
<category>Other discussion</category><pubDate>Tue, 26 Mar 2013 03:06:26 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,237625,237691#msg-237691</guid>
<title>Re: Nginx URL rewrite changes URL</title><link>http://forum.nginx.org/read.php?15,237625,237691#msg-237691</link><description><![CDATA[rewrite ^/dentists/([a-z]+)/([a-z]+)/?$ /doctorsInArea.htm?cID=$1&amp;aID=$2;<br /><br />Does this work? You don't want to use http:// for rewrite]]></description>
<dc:creator>voodooKobra</dc:creator>
<category>Other discussion</category><pubDate>Fri, 22 Mar 2013 14:56:28 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,237625,237625#msg-237625</guid>
<title>Nginx URL rewrite changes URL</title><link>http://forum.nginx.org/read.php?15,237625,237625#msg-237625</link><description><![CDATA[I need to redirect a URL in nginx. My rule looks like this which actually causes the browser to visibly change the URL, which is not what is expected.<br /><br />location / {<br />rewrite ^/dentists/bangalore/indiranagar/$ http://abc.com/doctorsInArea.htm?cID=bangalore&amp;aID=indiranagar break;<br />}<br /><br />I read another question here nginx rewrite WITHOUT change url which tells me to remove the http part . I tried<br /><br />location / {<br />rewrite ^/dentists/bangalore/indiranagar/$ /doctorsInArea.htm?cID=bangalore&amp;aID=indiranagar break;<br />}<br /><br />This one throws a 404 even though http://abc.com/doctorsInArea.htm?cID=bangalore&amp;aID=indiranagar works fine when hit from the browser. Any insights on the problem would be apprreciated.]]></description>
<dc:creator>maxim.dsouza</dc:creator>
<category>Other discussion</category><pubDate>Thu, 21 Mar 2013 07:20:44 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,237329,237330#msg-237330</guid>
<title>Re: Nginx_client has masses of files, should a cron job clean it daily?</title><link>http://forum.nginx.org/read.php?15,237329,237330#msg-237330</link><description><![CDATA[I've done some more investigation and now not even sure if the guy who originally installed Nginx removed it at a later date. If I do 'top' command I see no nginx process running at all.<br /><br />Going by this site http://library.linode.com/web-servers/nginx/configuration/basic there should be nginx configuration in /opt/, but there is not.<br /><br />How can I check if the nginx_directory was just been left over?<br />How can I check if nginx is still installed or not?]]></description>
<dc:creator>Sicilian</dc:creator>
<category>Other discussion</category><pubDate>Wed, 13 Mar 2013 21:53:44 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,237329,237329#msg-237329</guid>
<title>Nginx_client has masses of files, should a cron job clean it daily?</title><link>http://forum.nginx.org/read.php?15,237329,237329#msg-237329</link><description><![CDATA[Over a year ago we had someone install Nginx on our dedicated server that hosts quite a busy Forum.<br /><br />Cut a long story short I've found the nginx_client has masses of files in the directory.<br /><br />At the moment I'm trying to empty the directory via terminal: -<br /><br /><br />root@server [~]# cd /home<br />root@server [/home]# ls<br />./ .cpan/ cpeasyapache/ munin/ oeallian/<br />../ .cpanm/ cpins/ MySQL-install/ quota.user*<br />aquota.user* .cpcpan/ lost+found/ nginx_client/ worldsat/<br />root@server [/home]# cd nginx_client<br />root@server [/home/nginx_client]# rm -rf ./*<br /><br />The above has been now running for four hours and still not emptied the directory.<br /><br />I briefly spoke to the guy who installed Nginx (who's not being very helpful now) he tell's there was a cron job in place to clean the directory.<br /><br />I remember when the guy installed nginx he had to put nginx_client directory in /home, due to it filling /tmp to fast, so I think the cronjob was never setup correctly.<br /><br />Crontab has the following: -<br /><br />SHELL=/bin/bash<br />PATH=/sbin:/bin:/usr/sbin:/usr/bin<br />MAILTO=root<br />HOME=/<br /><br /># run-parts<br />01 * * * * root run-parts /etc/cron.hourly<br />02 4 * * * root run-parts /etc/cron.daily<br />22 4 * * 0 root run-parts /etc/cron.weekly<br />42 4 1 * * root run-parts /etc/cron.monthly<br /><br />I've found tmpwatch in /etc/cron.daily<br /><br />flags=-umc<br />/usr/sbin/tmpwatch &quot;$flags&quot; -x /tmp/.X11-unix -x /tmp/.XIM-unix \<br />-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \<br />-X '/tmp/hsperfdata_*' 240 /tmp<br />/usr/sbin/tmpwatch &quot;$flags&quot; 720 /var/tmp<br />for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do<br />if [ -d &quot;$d&quot; ]; then<br />/usr/sbin/tmpwatch &quot;$flags&quot; -f 720 &quot;$d&quot;<br />fi<br />done<br /><br />I'm no expert coder and am very lost with this. Cleary the above is not going to empty /home/nginx_client.<br /><br />Please can anybody help me empty the directory nginx_client faster, at the moment its taking hours and still not empty. Also please help me with the correct cron command to clean it daily.<br /><br />Thank you in advance.]]></description>
<dc:creator>Sicilian</dc:creator>
<category>Other discussion</category><pubDate>Wed, 13 Mar 2013 21:45:22 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,237279,237279#msg-237279</guid>
<title>websocket проксирование</title><link>http://forum.nginx.org/read.php?15,237279,237279#msg-237279</link><description><![CDATA[Здравствуйте. Я использую nginx 1.2.1 вместе с модулем tcp-proxy-module. Соединения проксируются на nodejs, используется socket.io . Клиент - флэш приложение, соединение через бинарный сокет. В библиотеке socket.io при отсоединении клиента срабатывает событие &quot;disconnect&quot;. Я не сильно разбираюсь в тонкостях протоколов, но попытаюсь объяснить. Так вот, если из флэш приложения мы закрываем соединение - socket.close() - по-видимому отправляется пакет который говорит &quot;пока&quot; и соединение закрывается, событие disconnect сразу отрабатывает. Напомню, всё это происходит через nginx. Если у клиента пропало интернет соединение - пакета на закрытие не отправляется (возможно) и событие disconnect не наступает, а нужно, что бы это было сразу определено. Возможно ли отследить отвалившегося клиента и сделать так, что бекэнд корректно отработает закрытие. Я пытаюсь понять как это можно решить и кто (nginx или nodejs) &quot;виноват&quot;. Как проксируются такие постоянные соединения? Влияют ли таймауты (и какие) на это всё? Как обстоит c этим дело в новом nginx? Я не тестировал функционал проксирования в новой версии nginx.]]></description>
<dc:creator>retailret</dc:creator>
<category>Other discussion</category><pubDate>Tue, 12 Mar 2013 17:26:44 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,236527,236530#msg-236530</guid>
<title>Re: load balancing multi domanis error 500</title><link>http://forum.nginx.org/read.php?15,236527,236530#msg-236530</link><description><![CDATA[I'm sorry I fix this problem<br />Easy the real directory was /usr/share/nginx/xvideox and the directory pointing in nginx was /usr/share/nginx/xvideox<br />my fault<br />Thank you]]></description>
<dc:creator>mdwalter</dc:creator>
<category>Other discussion</category><pubDate>Sun, 24 Feb 2013 00:05:54 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,236527,236527#msg-236527</guid>
<title>load balancing multi domanis error 500</title><link>http://forum.nginx.org/read.php?15,236527,236527#msg-236527</link><description><![CDATA[Hi<br />I'm sorry for my english first!<br />So I have(for now, after more) 2 domains and 2 vps for nginx and 2 vps for mysql in loabalacing, when I put first domain everthing work fine with subdomain to.<br />2 vps with mysql and one of them use nginx as load balancing<br />2 vps with nginx for front-end web<br /><br />Ok when I put new domain(xvideox.co) appaers error 500,but when i put xvideox.co/index.php the message is file not found, but have directory configurate right!....I dont know<br />I for dns server use cloudflare<br />With first(computereconomy.com) domain work fine.<br />Maybe is the proxy<br />This is my configuration back-end and front-end(just one vps):<br /><br />http://computereconomy.com/files/nginx.conf-back-end.txt<br />http://computereconomy.com/files/back-end-default.txt<br />http://computereconomy.com/files/nginx.conf-front-end.txt<br />http://computereconomy.com/files/front-end-default.txt<br /><br />I try alots for example:<br />ssi on;<br />name_server: _;<br />then<br />on bind<br />put master server with both domains Forward (Names to Addresses) and Reverse (Addresses to Names)<br />in all server and i try one server yes and one no and viceversa and both<br /><br /><br />Thank guy!!]]></description>
<dc:creator>mdwalter</dc:creator>
<category>Other discussion</category><pubDate>Sat, 23 Feb 2013 21:44:45 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,236137,236137#msg-236137</guid>
<title>ngx_lua - ngx.var.request_body search</title><link>http://forum.nginx.org/read.php?15,236137,236137#msg-236137</link><description><![CDATA[Hi All<br /><br />I am using nginx as a reverse proxy. The reverse proxy works based on the content of the request body. But at times the request body is too huge and hence content searching is taking too much time.<br /><br />And my requirement is once I find the first occurence of the word in the body, I dont have to search for it. Rather would forward the complete request intended orginal server. So is there any progressive way of searching the content of the request body rather than storing the complete request and then searching which seems to be very time consuming. Even for a 1 KB body was taking around 20 secs.<br /><br />Also am using the lua plugin for this in nginx.<br /><br />Any help is much appreciated.<br /><br />regards<br />Achuth]]></description>
<dc:creator>achuth</dc:creator>
<category>Other discussion</category><pubDate>Tue, 12 Feb 2013 07:53:29 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235888,235890#msg-235890</guid>
<title>Re: Nginx reverse proxy - pretending a different URL</title><link>http://forum.nginx.org/read.php?15,235888,235890#msg-235890</link><description><![CDATA[You solve this with an internal DNS system, which is very simple to do, talk to your network administrators.]]></description>
<dc:creator>itpp2012</dc:creator>
<category>Other discussion</category><pubDate>Mon, 04 Feb 2013 09:20:42 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235888,235888#msg-235888</guid>
<title>Nginx reverse proxy - pretending a different URL</title><link>http://forum.nginx.org/read.php?15,235888,235888#msg-235888</link><description><![CDATA[Hy all<br /><br />I'm a beginner in nginx reverse proxy things, so excuse the maybe dump questions.<br /><br />We use a nginx as reverse proxy to access several web applications form unsecure zones.<br />I type in jira.example.com and it goes through firewall, reverse proxy to the web application. But for internal use we use the different URl jira.example.int (which is defined as baseurl inside the application).<br />Now atlassian jira takes intensive usage of the baseurl configured, the app will not work as needed if the URL is wrong / does not match the baseurl.<br /><br />Question: how can I &quot;pretend&quot; the URl jira.example.int although I use jira.example.com?<br />I thought it'll require something like url rewriting but I'm really not that good in this proxy thing. And our specialist isn't around right now.<br /><br />thanks in advance for any help or suggestions]]></description>
<dc:creator>notafake</dc:creator>
<category>Other discussion</category><pubDate>Mon, 04 Feb 2013 08:19:26 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235820,235850#msg-235850</guid>
<title>Re: request was rejected because its size (3277304) exceeds the configured maximum (2000000)</title><link>http://forum.nginx.org/read.php?15,235820,235850#msg-235850</link><description><![CDATA[Trow this &quot;org.apache.commons.fileupload SizeLimitExceededException&quot; into google, plenty of solutions.]]></description>
<dc:creator>itpp2012</dc:creator>
<category>Other discussion</category><pubDate>Sat, 02 Feb 2013 06:11:10 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235820,235848#msg-235848</guid>
<title>Re: request was rejected because its size (3277304) exceeds the configured maximum (2000000)</title><link>http://forum.nginx.org/read.php?15,235820,235848#msg-235848</link><description><![CDATA[Thanks for the reply...<br />Is there any settings in tomcat for enabling File upload or file limit.<br /><br />As i tested the same on my windows machine with same setup and no blank page is displaying.....It just show the above mentioned error on the browser where as in Linux [CentOS 6.2 x64] it shows blanks page and the error is displaying in log file.]]></description>
<dc:creator>Sunny Thakur</dc:creator>
<category>Other discussion</category><pubDate>Sat, 02 Feb 2013 02:26:29 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235820,235826#msg-235826</guid>
<title>Re: request was rejected because its size (3277304) exceeds the configured maximum (2000000)</title><link>http://forum.nginx.org/read.php?15,235820,235826#msg-235826</link><description><![CDATA[Sunny Thakur Wrote:<br />-------------------------------------------------------<br />&gt; at java.lang.Thread.run(Thread.java:722)<br />&gt; Caused by:<br />&gt; org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededExceptio<br />&gt; n: the request was rejected because its size (4358445) exceeds the<br />&gt; configured maximum (2000000)<br /><br />This looks like a tomcat error and not a nginx issue.]]></description>
<dc:creator>itpp2012</dc:creator>
<category>Other discussion</category><pubDate>Fri, 01 Feb 2013 13:58:29 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235820,235820#msg-235820</guid>
<title>request was rejected because its size (3277304) exceeds the configured maximum (2000000)</title><link>http://forum.nginx.org/read.php?15,235820,235820#msg-235820</link><description><![CDATA[Hello,<br /><br />We have a application is jsp which is running on tomcat and using nginx as a front. Now what was happening while uploading the file using application the error thrown by nginx on web browser was &quot;413 Request Entity Too Large&quot;. So what i did i add below lines in virtual host file.<br /><br />client_body_in_file_only clean;<br />client_body_buffer_size 128K;<br />client_max_body_size 5M;<br />sendfile on;<br />send_timeout 900s;<br />keepalive_timeout 300;<br /><br />Then error was fixed, but now what is happening while uploading 3-4 Mb size file browser keep uploading the file and after sometime a blank page appears with below error in log files.<br /><br />[ERROR] 04:58:32 ErrorHandler - Error encountered<br />org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size of 2000000 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (4358439) exceeds the configured maximum (2000000)<br />at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:160)<br />at org.springframework.web.multipart.commons.CommonsMultipartResolver.resolveMultipart(CommonsMultipartResolver.java:139)<br />at org.springframework.web.servlet.DispatcherServlet.checkMultipart(DispatcherServlet.java:1020)<br />at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:883)<br />at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)<br />at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)<br /><br />at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)<br />at java.lang.Thread.run(Thread.java:722)<br />Caused by: org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (4358445) exceeds the configured maximum (2000000)<br />at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.&lt;init&gt;(FileUploadBase.java:914)<br />at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331)<br />at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:349)<br />at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)<br />at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest(CommonsMultipartResolver.java:156)<br />... 55 more<br /><br />Please help me on this]]></description>
<dc:creator>Sunny Thakur</dc:creator>
<category>Other discussion</category><pubDate>Fri, 01 Feb 2013 10:15:53 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235793,235793#msg-235793</guid>
<title>HTTP Speed vs. HTTPS Speed</title><link>http://forum.nginx.org/read.php?15,235793,235793#msg-235793</link><description><![CDATA[Hi,<br /><br />I installed a testsetup to find the impact of ssl on nginx performance (requests per second)<br /><br />I don't understand a behaviour with the Testsetup I have here.<br /><br />The setup:<br /><br />a nearly naked Ubuntu 12.04 with:<br />- Apache listening on Port 8080 for HTTP Request serving the standard static welcome page.<br />- Nginx as a reverse proxy with 2 sites:<br />- default passing http to apache<br />- default-ssl playing ssl endpoint for the apache server<br /><br />the &quot;problem&quot; is: i get nearly double the request per second with ssl compared to simple http. How can it be?<br /><br />this is my default config:<br />server {<br />listen *:80;<br />location / {<br />proxy_pass http://localhost:8080;<br />}<br />}<br /><br />this is the default-ssl config:<br /><br />server {<br />listen *:443;<br />ssl on;<br />ssl_certificate server.crt;<br />ssl_certificate_key server.key;<br />location / {<br />proxy_pass http://localhost:8080;<br />add_header Front-End-Https on;<br />}<br />}<br /><br />Can anybody explain to me why this happens, or what I am doing wrong?<br /><br />Armin<br /><br />edit: I'm using wrk to test:<br /><br />wrk -t8 -c400 -r10m https://serverip/]]></description>
<dc:creator>deliarmin</dc:creator>
<category>Other discussion</category><pubDate>Fri, 01 Feb 2013 03:29:31 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235725,235725#msg-235725</guid>
<title>external access to owncloud</title><link>http://forum.nginx.org/read.php?15,235725,235725#msg-235725</link><description><![CDATA[Hi All<br /><br />I recently installed owncloud which works they way it should when I'm on my own network. However I have difficulties accessing externally:<br /><br />I set up a dlinkddns account which tracks my ip however I seem to forward to the wrong port. When I use my dlinkddns address, it sends me to my router login page rather than owncloud.<br /><br />How can I find out which port nginx is using for owncloud?<br /><br />Any help is much appreciated :)]]></description>
<dc:creator>catoutnow</dc:creator>
<category>Other discussion</category><pubDate>Wed, 30 Jan 2013 05:46:10 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,230775,235526#msg-235526</guid>
<title>Re: how to enable php dio(directio) extension</title><link>http://forum.nginx.org/read.php?15,230775,235526#msg-235526</link><description><![CDATA[Yes,I have the same question.]]></description>
<dc:creator>回首郑板桥</dc:creator>
<category>Other discussion</category><pubDate>Thu, 24 Jan 2013 03:57:39 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235412,235412#msg-235412</guid>
<title>Optimizing Nginx for serving 1GB files - Finding values for 'directio' &amp; 'output_buffers'</title><link>http://forum.nginx.org/read.php?15,235412,235412#msg-235412</link><description><![CDATA[Hi All,<br /><br />We have a Nginx web server which is serving files whose size is almost 1GB. We were trying to optimize the configuration with directio &amp; output_buffers directives. but, we couldn't find any calculation/formula with which we can identify suitable values for above mentioned directives.<br /><br />Server Spec<br /><br />Processor: Intel E5-2600 Xeon Family (2cpus,16 cores each)<br />RAM: 32GB<br />Nginx Version: 1.3.9 (dev)<br /><br />Could you plz explain how we can find values for 'directio' &amp; 'output_buffers' specific to a server.<br /><br />Thanks<br />Jayaraj]]></description>
<dc:creator>jayaraj.k</dc:creator>
<category>Other discussion</category><pubDate>Tue, 22 Jan 2013 10:02:05 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,225132,235130#msg-235130</guid>
<title>Re: No input file specified</title><link>http://forum.nginx.org/read.php?15,225132,235130#msg-235130</link><description><![CDATA[http://www.obdcheap.com/code-reader-scanner-tool-obd-ii-eobd-english-spanish-sc05.html EOBD SC05<br /><br />http://www.obdcheap.com/launch-obd2-code-reader-creader-v.html Launch Obd2 Creader V]]></description>
<dc:creator>garciano</dc:creator>
<category>Other discussion</category><pubDate>Tue, 15 Jan 2013 04:15:43 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235002,235002#msg-235002</guid>
<title>Problem with subfolders php-cgi execution</title><link>http://forum.nginx.org/read.php?15,235002,235002#msg-235002</link><description><![CDATA[Hi, sorry, i don't speak english, I will be very brief :D<br /><br />I use this for php-cgi 404<br /><br />location ~ \.php$ {<br />root public;<br />try_files $uri @404;<br />...<br />}<br /><br />location @404 { return 404; break; }<br />error_page 404 /404.html;<br /><br />in &quot;http://localhost/index.php&quot; work, in &quot;http://localhost/forum/index.php&quot; return 404 error... the folder exists and the index.php idem in /forum/ folder... any idea? :(]]></description>
<dc:creator>Mavin</dc:creator>
<category>Other discussion</category><pubDate>Sun, 13 Jan 2013 08:08:23 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,234503,234564#msg-234564</guid>
<title>Re: index.php work. index.php&amp;login=true dont work</title><link>http://forum.nginx.org/read.php?15,234503,234564#msg-234564</link><description><![CDATA[ok now i se what was the problem.. :) i need to use ? and not &amp; :)]]></description>
<dc:creator>t3ch</dc:creator>
<category>Other discussion</category><pubDate>Sat, 29 Dec 2012 11:00:07 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,234538,234538#msg-234538</guid>
<title>load balance traffic by nginx</title><link>http://forum.nginx.org/read.php?15,234538,234538#msg-234538</link><description><![CDATA[Hi everybody.<br />I am interested in setting up site with some servers where nginx would work as a balancer but not proxying all requests, as the server where proxy is located can not handle so much network traffic sent by servers back<br />For example i have 3 servers with weight of each : first server -&gt; 1 weight , second-&gt; 2 weight, third-&gt;3 weight<br />When request comes nginx have to send clients to second server 2 times oftener, third server 3 times oftener than first server and these servers then establish tcp session with clients bypassing nginx proxy server which's function is only to check if the servers are available<br />Is it possible?]]></description>
<dc:creator>ilik1989</dc:creator>
<category>Other discussion</category><pubDate>Fri, 28 Dec 2012 04:23:37 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,234503,234532#msg-234532</guid>
<title>Re: index.php work. index.php&amp;login=true dont work</title><link>http://forum.nginx.org/read.php?15,234503,234532#msg-234532</link><description><![CDATA[i am using now POST method insted of GET.<br /><br />love &amp; light to every one.]]></description>
<dc:creator>t3ch</dc:creator>
<category>Other discussion</category><pubDate>Thu, 27 Dec 2012 18:46:30 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,234503,234503#msg-234503</guid>
<title>index.php work. index.php&amp;login=true dont work</title><link>http://forum.nginx.org/read.php?15,234503,234503#msg-234503</link><description><![CDATA[Hello all,<br /><br />I have problem with accessing index.php&amp;login=true. It gives 404 error. But when i try to access only index.php it works.<br /><br />here is config: sites-available/localhost.conf<br /><br />server {<br />listen 80;<br />server_name localhost;<br />access_log /var/log/nginx/localhost.access.log;<br />error_log /var/log/nginx/localhost.error.log;<br /><br />root /home/user/www/localhost/htdocs;<br />#autoindex on;<br /><br />location /pma {<br />index index.php;<br />}<br /><br />location / {<br />index index.php;<br />}<br /><br />location ~ \.php$ {<br /># Filter out arbitrary code execution<br />#location ~ \..*/.*\.php$ {return 404;}<br /><br />include fastcgi_params;<br />fastcgi_pass localhost:9000;<br />#fastcgi_pass unix:/var/run/php5-fpm.socket;<br />#fastcgi_pass localhost;<br />}<br />}]]></description>
<dc:creator>t3ch</dc:creator>
<category>Other discussion</category><pubDate>Thu, 27 Dec 2012 08:23:32 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,233021,233984#msg-233984</guid>
<title>Re: nginx sometimes doesn't start</title><link>http://forum.nginx.org/read.php?15,233021,233984#msg-233984</link><description><![CDATA[Make sure you stop the apache2 service and remove apache2 during the automated fresh install phase.]]></description>
<dc:creator>voodooKobra</dc:creator>
<category>Other discussion</category><pubDate>Thu, 13 Dec 2012 13:31:47 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,233021,233798#msg-233798</guid>
<title>Re: nginx sometimes doesn't start</title><link>http://forum.nginx.org/read.php?15,233021,233798#msg-233798</link><description><![CDATA[I have discovered that nginx returns a status code 0 when the init.d script fails to start.<br /><br />If I force an error I see output in /var/log/nginx/error.log so I'm not sure why we're not getting any output there. Any clues?<br /><br />Below I have the output of a fresh, default installation of nginx but something is already running on port 80 causing the startup to fail. However, as you can see the status code is 0.<br /><br />ubuntu@graphite-tc2cj:~$ sudo service nginx start<br />Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)<br />nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)<br />nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)<br />nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)<br />nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)<br />nginx: [emerg] still could not bind()<br />nginx.<br />ubuntu@graphite-tc2cj:~$ echo $?<br />0<br />ubuntu@graphite-tc2cj:~$ ps -aef | grep nginx<br />ubuntu 24422 23821 0 13:31 pts/0 00:00:00 grep --color=auto nginx]]></description>
<dc:creator>pgm</dc:creator>
<category>Other discussion</category><pubDate>Mon, 10 Dec 2012 08:39:59 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,225352,233742#msg-233742</guid>
<title>Re: epoll_ctl failures</title><link>http://forum.nginx.org/read.php?15,225352,233742#msg-233742</link><description><![CDATA[Nope. I upgraded from 1.1.19 back then to 1.2.4 and now 1.3.9 and I am still facing the problem.<br />My system is running under Ubuntu 3.5.0-19 and apparmor is running. Keep me posted if you find something.]]></description>
<dc:creator>ylavoie</dc:creator>
<category>Other discussion</category><pubDate>Sat, 08 Dec 2012 17:52:28 -0500</pubDate></item>
</channel>
</rss>