<?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>Tue, 21 May 2013 17:06:04 -0400</lastBuildDate>
<generator>Phorum 5.2.16</generator>
<item>
<guid>http://forum.nginx.org/read.php?15,239323,239323#msg-239323</guid>
<title>Site Files are Not Working (no replies)</title><link>http://forum.nginx.org/read.php?15,239323,239323#msg-239323</link><description><![CDATA[Hi all,<br /><br />I wish someone can help me. We have a web server that is running NginX in front of Apache. Clicking some file locations would give NginX 404 error. Below is an example:<br /><br />http://store.auto-works.cc/image/flags/sa.png<br /><br />http://store.auto-works.cc/admin/view/image/logo.png<br /><br />Usually those files were working fine. Anyone can help me please fixing this problem?]]></description>
<dc:creator>marwan83</dc:creator>
<category>Other discussion</category><pubDate>Sun, 19 May 2013 07:10:15 -0400</pubDate></item>
<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 (no replies)</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 (no replies)</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 (no replies)</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,237625#msg-237625</guid>
<title>Nginx URL rewrite changes URL (1 reply)</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>Fri, 22 Mar 2013 14:56:28 -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? (1 reply)</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:53:44 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,237279,237279#msg-237279</guid>
<title>websocket проксирование (no replies)</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,236527#msg-236527</guid>
<title>load balancing multi domanis error 500 (1 reply)</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>Sun, 24 Feb 2013 00:05:54 -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 (no replies)</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,235888#msg-235888</guid>
<title>Nginx reverse proxy - pretending a different URL (1 reply)</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 09:20:42 -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) (3 replies)</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>Sat, 02 Feb 2013 06:11:10 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,235793,235793#msg-235793</guid>
<title>HTTP Speed vs. HTTPS Speed (no replies)</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 (no replies)</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,235412,235412#msg-235412</guid>
<title>Optimizing Nginx for serving 1GB files - Finding values for 'directio' &amp; 'output_buffers' (no replies)</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,235002,235002#msg-235002</guid>
<title>Problem with subfolders php-cgi execution (no replies)</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,234538,234538#msg-234538</guid>
<title>load balance traffic by nginx (no replies)</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,234503#msg-234503</guid>
<title>index.php work. index.php&amp;login=true dont work (2 replies)</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>Sat, 29 Dec 2012 11:00:07 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,233574,233574#msg-233574</guid>
<title>limit_req for a url (no replies)</title><link>http://forum.nginx.org/read.php?15,233574,233574#msg-233574</link><description><![CDATA[I like to limit_req for a url ex. http://mysite.com/index.php?show=list&amp;search=whatever<br /><br />if someone request somthing that have show=list<br />I like to have a limit like max 1 request every sec.<br /><br />bin trying something like this but I can get it to work. with out it takes all like show=item<br /><br />http{<br />map $arg_show $list_limit {<br />default $binary_remote_addr;<br />}<br />limit_req_zone $arg_index zone=one:10m rate=1r/s;<br /><br />server {<br />limit_req zone=one burst=5;<br />}<br /><br />}]]></description>
<dc:creator>sjark</dc:creator>
<category>Other discussion</category><pubDate>Tue, 04 Dec 2012 10:19:02 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,233385,233385#msg-233385</guid>
<title>filename resolution error after regex captures &amp; matching if (1 reply)</title><link>http://forum.nginx.org/read.php?15,233385,233385#msg-233385</link><description><![CDATA[First , i will apologize for the setup i use : cygwin recompilation of nginx 1.2.5 source (not very officially supported) , but i noticed this :<br />(using --with-debug compilation)<br /><br />I think i found a bug in the filename construction from regexp (when using a matching if before)<br /><br /><br />Problematic configuration entry:<br /><br />location ~ ^/test1/hls/(.*?/*)\.m3u(.)<br />{<br />alias //gagarine/poubelle/seb/hls/$1.m3u$2;<br />if ($hlsexp)<br />{<br />expires 0;<br />}<br />}<br /><br />I'll put a &quot;Analyzed debug log&quot; alongside the corresponding config part i suppose it matches<br /><br /><br /><br />-- DEBUG LOG EXTRACT --<br /><br />-- HERE IS THE REQUEST --<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http request line: &quot;GET /test1/hls/titi/index-timeshifting.m3u8 HTTP/1.1&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http uri: &quot;/test1/hls/titi/index-timeshifting.m3u8&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http args: &quot;&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http exten: &quot;m3u8&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http process request header line<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Host: 172.18.200.233&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Connection: keep-alive&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Cache-Control: max-age=0&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Accept-Encoding: gzip,deflate,sdch&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Accept-Language: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header: &quot;Cookie: consoleSessionId=gkzdbGM7T2XpOmVL&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http header done<br />-- REQUEST IDENTIFICATION END --<br /><br />2012/11/29 15:16:18 [debug] 2044#0: *2 event timer del: 7: 1283940725<br />2012/11/29 15:16:18 [debug] 2044#0: *2 rewrite phase: 0<br /><br />-- VALUE SETTINGS LOG --<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script value: &quot;1&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script set $hlsexp<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script value: &quot;0&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script set $ssexp<br />-- ASSOCIATED CONF ENTRY --<br />set $hlsexp &quot;1&quot;;<br />set $ssexp &quot;0&quot;;<br /><br /><br /><br /><br />-- LOCATION MATCHING --<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: &quot;^/test1/hls/&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: &quot;/&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: &quot;crossdomain.xml&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: &quot;hls/&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: ~ &quot;^/ss/(.*).isml?/Manifest(.*)$&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: ~ &quot;/ss/(.*)/Manifest(.*)$&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: ~ &quot;^/ss/(.*)\.isml?/QualityLevels.*$&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: ~ &quot;^/ss/.*/.*/QL_.*$&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 test location: ~ &quot;^/test1/hls/(.*?/*)\.m3u(.)&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 using configuration &quot;^/test1/hls/(.*?/*)\.m3u(.)&quot;<br />-- IT FINDS THE GOOD ENTRY ACCORDING FOLLOWING CONF --<br />location ~ ^/test1/hls/(.*?/*)\.m3u(.)<br /><br />-- REWRITING PHASE --<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http cl:-1 max:1048576<br />2012/11/29 15:16:18 [debug] 2044#0: *2 rewrite phase: 2<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script var<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script var: &quot;1&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script if<br />2012/11/29 15:16:18 [debug] 2044#0: *2 post rewrite phase: 3<br />2012/11/29 15:16:18 [debug] 2044#0: *2 generic phase: 4<br />2012/11/29 15:16:18 [debug] 2044#0: *2 generic phase: 5<br />2012/11/29 15:16:18 [debug] 2044#0: *2 access phase: 6<br />2012/11/29 15:16:18 [debug] 2044#0: *2 access phase: 7<br />2012/11/29 15:16:18 [debug] 2044#0: *2 post access phase: 8<br />2012/11/29 15:16:18 [debug] 2044#0: *2 content phase: 9<br />2012/11/29 15:16:18 [debug] 2044#0: *2 content phase: 10<br />2012/11/29 15:16:18 [debug] 2044#0: *2 content phase: 11<br />-- THIS SEEMS ALMOST NORMAL --<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script copy: &quot;//gagarine/poubelle/seb/hls/&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script capture: &quot;titi/index-timeshifting&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script copy: &quot;.m3u&quot;<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http script capture: &quot;8&quot;<br />-- CAPTURE GROUPS SEEM TO BE OK ACCORDING TO :<br />location ~ ^/test1/hls/(.*?/*)\.m3u(.)<br />and<br />alias //gagarine/poubelle/seb/hls/$1.m3u$2;<br /><br />-- THE BUG IS HERE --<br />2012/11/29 15:16:18 [debug] 2044#0: *2 http filename: &quot;//gagarine/poubelle/seb/hls/titi/index-timeshifting.m3u8hifting.m3u8&quot;<br /><br />it seems that some internal buffer is not set to the good length.<br />there is an extra &quot;hifting.m3u8&quot; at the end that should not be there.<br /><br /><br />INTERESTING NOTE:<br />-------------------------------<br /><br />if the $hlsexp is set to &quot;0&quot; then the bug does not appear , the final &quot;filename&quot; variable has the good length.<br /><br /><br />Any help will be appreciated]]></description>
<dc:creator>dweeves</dc:creator>
<category>Other discussion</category><pubDate>Fri, 30 Nov 2012 08:47:36 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,233157,233157#msg-233157</guid>
<title>Proxy: Multiple requests for uncached file (no replies)</title><link>http://forum.nginx.org/read.php?15,233157,233157#msg-233157</link><description><![CDATA[I am using Nginx as a proxy to cache very large files.<br /><br />When I make a request for a file that is not in the cache it goes upstream to get it, as it should.<br /><br />When I make a second request for the same file, the first one still downloading, I see Nginx create another connection upstream to get the file. (all subsequent requests are the same until the file is fully cached).<br /><br />I would think that there is should be a way for it to know that it already has a connection streaming in this file and be able to use what it is sending. I would think the second file would download around the same speed as a cached file until it catches up to the first request for the file.<br /><br />Does Nginx already support this and I'm just not configured properly?<br /><br />Thanks for any help in advance.]]></description>
<dc:creator>Killiconn</dc:creator>
<category>Other discussion</category><pubDate>Thu, 22 Nov 2012 15:36:06 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,233021,233021#msg-233021</guid>
<title>nginx sometimes doesn't start (2 replies)</title><link>http://forum.nginx.org/read.php?15,233021,233021#msg-233021</link><description><![CDATA[Hello,<br /><br />I wondered if you could help? We have a strange intermittent problem.<br /><br />We use the Phoenix Server pattern[1] which means we throw away our servers and rebuild them from scratch rather than upgrade them. We do this at least once a day. We use Puppet to configure our boxes which run Ubuntu Precise. We run a number of nginx servers for different purposes (one for hosting monitoring dashboards, one for static content etc.), though all are very simple and similar.<br /><br />Our Puppet config, for nginx, is very simple, we drop in a single nginx.conf (see below) and replace default-site.<br /><br />What we've noticed is that sometimes nginx is found wanting and we are left with a server without nginx running. This happens about one in every hundred or less deploys so is very,very intermittent.<br /><br />If we ssh onto the box and start nginx manually it works fine. We've found this happens on boxes with different site configurations (so sometimes the monitoring server, sometimes the static content).<br /><br />The big problem we have is that there appears to be no log entries anywhere, in syslog or /var/log/nginx which suggest whether nginx started or even if it experienced any problems on startup - we've also found this with 'healthy' nginx installs, nginx doesn't seem to log any application messages anywhere.<br /><br />On one occasion I was lucky enough to find a single access.log.1 which had a single 400 entry with a timestamp that matched the puppet run. This seems to suggest that nginx did indeed come up for a period of time but decided to go down. I have guessed that this is to do with the ordering of the puppet script which install nginx package, which in turn starts nginx service, puppet then drops config files and tells nginx to restart (using notify =&gt; Service[nginx]). I'm suspicious that nginx is sometimes failing to complete the restart (as in it stops but doesn't start up again) but for some reason the init.d is returning a good exit status.<br /><br />So, two questions really: any ideas why nginx would not be starting? And how do we configure nginx so it gives some log output so we can attempt to diagnose nginx instances that fail to start up?<br /><br />Many thanks<br />PGM<br />[1] http://martinfowler.com/bliki/PhoenixServer.html<br /><br />Our nginx.conf:<br /><br />user www-data;<br />worker_processes 4;<br />pid /var/run/nginx.pid;<br /><br />events {<br />worker_connections 768;<br />}<br /><br />http {<br />sendfile on;<br />tcp_nopush on;<br />tcp_nodelay on;<br />keepalive_timeout 65;<br />types_hash_max_size 2048;<br />server_tokens off;<br /><br />include /etc/nginx/mime.types;<br />default_type application/octet-stream;<br /><br />access_log /var/log/nginx/access.log;<br />error_log /var/log/nginx/error.log;<br /><br />gzip on;<br />gzip_disable &quot;msie6&quot;;<br /><br />include /etc/nginx/conf.d/*.conf;<br />include /etc/nginx/sites-enabled/*;<br />}]]></description>
<dc:creator>pgm</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,232956,232956#msg-232956</guid>
<title>is it possible to use Nginx to manipulate web content without having to make changes to the web server or content (1 reply)</title><link>http://forum.nginx.org/read.php?15,232956,232956#msg-232956</link><description><![CDATA[Hi, I am doing some research on how to manipulate web content coming from my web servers without having to make any changes to the original content or web servers. what i need is a kind of a &quot;Dynamic Content Proxy&quot;.<br /><br />Can Nginx be a suitable platform for this ? to be a generic intermediate server of the flow of content from the web server to the client ?<br /><br />I'm guessing as far as performance it's the best way to go since it's already optimized for this kind of flow.<br /><br />Can anyone direct me on where to start and what would be the best way to work on this ? is this something that can be done by developing a Nginx module ?<br /><br />Looking forward for your advise.<br />Thanks]]></description>
<dc:creator>buzibuzi</dc:creator>
<category>Other discussion</category><pubDate>Tue, 20 Nov 2012 08:56:30 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,232746,232746#msg-232746</guid>
<title>High traffic site running slow (1 reply)</title><link>http://forum.nginx.org/read.php?15,232746,232746#msg-232746</link><description><![CDATA[Hi everyone,<br /><br />I am running a high traffic site with some friends and recently we switched from Apache to Nginx. We're having large problems since then. When we hit like 300 visitors the site loads very slow. It can take about 10+ seconds for a page to load.<br /><br />It only seems to be pages with PHP that loads slowly. We don't have the samme issue on pages with pure HTML. After searching the Nginx forums we don't seem to be the only ones with this issue, but I haven't found any solution for it when I've searched. Any help with this is really appreciated!<br /><br />Here's how our conf-file looks like for the moment:<br /><br />user www-data;<br />worker_processes 12;<br />worker_rlimit_nofile 8192;<br />pid /var/run/nginx.pid;<br /><br />events {<br />worker_connections 4096;<br />multi_accept on;<br />use epoll;<br />}<br /><br />http {<br /><br />##<br /># Basic Settings<br />##<br /><br />sendfile on;<br />tcp_nopush on;<br />tcp_nodelay on;<br />keepalive_timeout 65;<br />types_hash_max_size 2048;<br />server_tokens off;<br /><br />#edit<br />client_max_body_size 2m;<br />fastcgi_buffers 256 16k;<br />fastcgi_buffer_size 32k;<br />limit_req_zone $binary_remote_addr zone=blitz:10m rate=10r/s;<br /><br /># server_names_hash_bucket_size 64;<br /># server_name_in_redirect off;<br /><br />include /etc/nginx/mime.types;<br />default_type application/octet-stream;<br /><br />##<br /># Logging Settings<br />##<br /><br />access_log /var/log/nginx/access.log;<br />error_log /var/log/nginx/error.log;<br /><br />##<br /># Gzip Settings<br />##<br /><br />gzip on;<br />gzip_disable &quot;msie6&quot;;<br /><br /># gzip_vary on;<br /># gzip_proxied any;<br /># gzip_comp_level 6;<br /># gzip_buffers 16 8k;<br /># gzip_http_version 1.1;<br /># gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;<br /><br />##<br /># nginx-naxsi config<br />##<br /># Uncomment it if you installed nginx-naxsi<br />##<br /><br />#include /etc/nginx/naxsi_core.rules;<br /><br />##<br /># nginx-passenger config<br />##<br /># Uncomment it if you installed nginx-passenger<br />##<br /><br />#passenger_root /usr;<br />#passenger_ruby /usr/bin/ruby;<br /><br />##<br /># Virtual Host Configs<br />##<br /><br />include /etc/nginx/conf.d/*.conf;<br />include /etc/nginx/sites-enabled/*;<br />}<br /><br /><br />#mail {<br /># # See sample authentication script at:<br /># # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript<br />#<br /># # auth_http localhost/auth.php;<br /># # pop3_capabilities &quot;TOP&quot; &quot;USER&quot;;<br /># # imap_capabilities &quot;IMAP4rev1&quot; &quot;UIDPLUS&quot;;<br />#<br /># server {<br /># listen localhost:110;<br /># protocol pop3;<br /># proxy on;<br /># }<br />#<br /># server {<br /># listen localhost:143;<br /># protocol imap;<br /># proxy on;<br /># }<br />#}]]></description>
<dc:creator>particle</dc:creator>
<category>Other discussion</category><pubDate>Wed, 05 Dec 2012 02:23:43 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,232590,232590#msg-232590</guid>
<title>Interior Home Designs of Rossendale (no replies)</title><link>http://forum.nginx.org/read.php?15,232590,232590#msg-232590</link><description><![CDATA[I didn’t think that any kitchen company can compete with Interior Home Designs of Rossendale.]]></description>
<dc:creator>capuchino</dc:creator>
<category>Other discussion</category><pubDate>Thu, 08 Nov 2012 02:10:32 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,232519,232519#msg-232519</guid>
<title>Configuration dosnt work with Owncloud (no replies)</title><link>http://forum.nginx.org/read.php?15,232519,232519#msg-232519</link><description><![CDATA[Hi guys and thanks for nginx, much aphriciated<br /><br />I got a small problem - just did a clean install of owncloud on my armbox, but I cant seem to get my carddav/caldav (not syncing) to work aswell as nginx dosnt protect the config/data folders<br /><br />Tried searching the forum but didnt come up with any good<br /><br />Heres my nginx conf: http://pastebin.com/1bckrFiZ<br /><br />My owncloud install is located at /owncloud (/mnt/sda1 &lt;- webroot)]]></description>
<dc:creator>joelkaberg</dc:creator>
<category>Other discussion</category><pubDate>Tue, 06 Nov 2012 04:16:18 -0500</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,232410,232410#msg-232410</guid>
<title>Nginx utilizes a ton of CPU during peak hours (no replies)</title><link>http://forum.nginx.org/read.php?15,232410,232410#msg-232410</link><description><![CDATA[Hello, I'm hoping someone would be able to assist in my dillemma, ive searched for a few days on a fix with no success.. I run Nginx in proxy passthrough mode to apache.. (I hope I got the right terminology..), but basically, we've been seeing issues with our Media server, where once we start getting enough requests to make the bandwidth get above 100mbit, we start seeing drops on our cacti graphs.. when i can get online as the time, I notice that Nginx is utilizing a ton of CPU causing the server to slow down considerably.. I'm worried that my configuration has some issues and I would really appreciate the help from the community. Details on the server, brand new dell r515 (6 cores, 16GB RAM, 2 15K SAS drives for the os in a RAID 0, 12 2TB HDDs in a RAID 6 for the media). Average file size is 120MB, they don't deviate more than +/-5% of that size.. so its quite consistent..<br /><br />Here is the config we use.. We have a custom built CDN that uses nginx, and we can get the same files served over 120mbit with no issues.. so im sure its something i tweaked that is wrong..<br /><br />user nobody;<br />worker_processes 10;<br />error_log /var/log/nginx/error.log info;<br />worker_rlimit_nofile 20480;<br />events {<br />worker_connections 5120; # increase for busier servers<br />use epoll; # you should use epoll here for Linux kernels 2.6.x<br />}<br />http {<br />server_name_in_redirect off;<br />server_names_hash_max_size 10240;<br />server_names_hash_bucket_size 1024;<br />include mime.types;<br />default_type application/octet-stream;<br />server_tokens off;<br />disable_symlinks if_not_owner;<br />sendfile off;<br />tcp_nopush on;<br />tcp_nodelay on;<br />keepalive_timeout 5;<br />gzip on;<br />gzip_vary on;<br />gzip_disable &quot;MSIE [1-6]\.&quot;;<br />gzip_proxied any;<br />gzip_http_version 1.1;<br />gzip_min_length 1000;<br />gzip_comp_level 6;<br />gzip_buffers 16 8k;<br />gzip_types text/plain text/xml text/css application/x-javascript application/xml image/png image/x-icon image/gif image/jpeg application/xml+rss text/javascript application/atom+xml;<br />ignore_invalid_headers on;<br />client_header_timeout 3m;<br />client_body_timeout 3m;<br />send_timeout 3m;<br />reset_timedout_connection on;<br />connection_pool_size 512;<br />client_header_buffer_size 256k;<br />large_client_header_buffers 4 256k;<br />client_max_body_size 200M;<br />client_body_buffer_size 128k;<br />request_pool_size 64k;<br />output_buffers 4 64k;<br />postpone_output 1460;<br />proxy_temp_path /nginx_temp/;<br />client_body_in_file_only on;<br />log_format bytes_log &quot;$msec $bytes_sent .&quot;;<br />include &quot;/etc/nginx/vhosts/*&quot;;<br />}<br /><br />Thank you again for any help, i'm including graphs from the last 24 hours, you can see the system have hiccups when the amount of downloads gets to a certain point..<br />https://the-irc.com/images/zeus-odity.PNG<br />https://the-irc.com/images/zeus-odity2.PNG<br /><br />Much apprciated,<br />-Brad]]></description>
<dc:creator>robotman321</dc:creator>
<category>Other discussion</category><pubDate>Tue, 30 Oct 2012 18:53:52 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,232152,232152#msg-232152</guid>
<title>nginx_upstream_jvm_route - related (2 replies)</title><link>http://forum.nginx.org/read.php?15,232152,232152#msg-232152</link><description><![CDATA[Hi,<br /><br />Link ==&gt; http://code.google.com/p/nginx-upstream-jvm-route/<br /><br />step1) /opt/httpwebserver/nginx_upstream_jvm_route $ patch p0 &lt; jvm_route.patch<br />step2 /opt/httpwebserver/nginx-1.3.7$ ./configure --add-module=../nginx_upstream_jvm_route<br />step3)make<br />step4) make install<br /><br />Everything is success untill now - life is easy<br /><br />StepA) i have removed step1 folder i.e nginx_upstream_jvm_route and freshly extracted nginx-upstream-jvm-route-0.1.tar.gz<br />StepB) /opt/httpwebserver/nginx-1.3.7$ ./configure --add-module=../nginx_upstream_jvm_route<br />stepC) make<br />stepD) make install<br /><br />Build failed i.e stepC &amp; D.<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:428: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘session_cookie’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:429: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘session_cookie’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:434: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘session_url’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:435: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘session_url’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:446: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘session_url’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:447: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘session_url’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:472: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘reverse’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:476: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘values’<br />../nginx_upstream_jvm_route/ngx_http_upstream_jvm_route_module.c:477: error: ‘ngx_http_upstream_srv_conf_t’ has no member named ‘lengths’<br /><br />if i try to apply patch again step1) /opt/httpwebserver/nginx_upstream_jvm_route $ patch p0 &lt; jvm_route.patch<br /><br />i get this error<br /><br />|Binary files src/core/.ngx_string.h.swp and src-change/core/.ngx_string.h.swp differ<br />|diff -ruN src/http/ngx_http_upstream.c src-change/http/ngx_http_upstream.c<br />|--- src/http/ngx_http_upstream.c 2009-07-01 14:24:20.000000000 +0800<br />|+++ src-change/http/ngx_http_upstream.c 2009-07-06 15:11:27.000000000 +0800<br />--------------------------<br />File to patch:<br /><br />How to fix this issue please help me, i appreciate]]></description>
<dc:creator>narayanab16</dc:creator>
<category>Other discussion</category><pubDate>Sun, 28 Oct 2012 12:34:07 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,231986,231986#msg-231986</guid>
<title>NGINX MIB (no replies)</title><link>http://forum.nginx.org/read.php?15,231986,231986#msg-231986</link><description><![CDATA[Hello,<br />I need to graph some values of the NGINX server but I can't find the MIB anywhere and I need it to get these values with SNMP<br />I would appreciate it if some could give it to me<br /><br />Thanks in advance<br /><br />Sorry if I posted this in the wrong section]]></description>
<dc:creator>CatiaB</dc:creator>
<category>Other discussion</category><pubDate>Thu, 18 Oct 2012 11:21:17 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,230948,230948#msg-230948</guid>
<title>FLV Module (no replies)</title><link>http://forum.nginx.org/read.php?15,230948,230948#msg-230948</link><description><![CDATA[I installed the module and flv to mp4<br /><br />mp4 worked perfectly without any problems<br /><br />FLV he accuses no error, but does not work, start the video according to the defined start.<br /><br />I saw in some forums that needed within the flv inform the path again, and it also did not work anyway.<br /><br /><br /><br /><br />location ~ \.flv$ {<br />flv;<br />root /home/isb/public_html;<br />}<br />location ~ \.mp4$ {<br />mp4;<br />}<br /><br /><br /><br />nginx -V<br />nginx version: nginx/1.2.3<br />built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)<br />TLS SNI support enabled<br />configure arguments: --with-pcre=/usr/local/src/publicnginx/pcre-8.30 --sbin-path=/usr/local/sbin --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_realip_module --with-http_ssl_module --http-client-body-temp-path=/tmp/nginx_client --http-proxy-temp-path=/tmp/nginx_proxy --http-fastcgi-temp-path=/tmp/nginx_fastcgi --with-http_stub_status_module --with-http_flv_module --with-http_mp4_module<br /><br /><br />my test<br /><br />test.flv?start=150<br /><br />it downloads the video from the beginning without respecting the start informed.<br /><br />--<br /><br />test.mp4?start=150<br /><br />works perfectly and starts from where it was set.<br /><br /><br />the problem only occurs in FLV<br /><br /><br />Can someone give me a hand? Thank you.]]></description>
<dc:creator>isbrasil</dc:creator>
<category>Other discussion</category><pubDate>Sat, 22 Sep 2012 15:25:59 -0400</pubDate></item>
<item>
<guid>http://forum.nginx.org/read.php?15,230775,230775#msg-230775</guid>
<title>how to enable php dio(directio) extension (1 reply)</title><link>http://forum.nginx.org/read.php?15,230775,230775#msg-230775</link><description><![CDATA[Hi,<br /><br />please let me know how to enable php's directio extension when using nginx as web server.<br />I need this because i have modem connected to com port and need to communicate to it..<br /><br />Regards,<br />abhilash]]></description>
<dc:creator>abhilash945</dc:creator>
<category>Other discussion</category><pubDate>Thu, 24 Jan 2013 03:57:39 -0500</pubDate></item>
</channel>
</rss>