Silvio Siefke Wrote: ------------------------------------------------------- > Hello, > > > Could someone possibly provide me the USE flags > available > if someone has run Nginx, PHP and Fpm. /etc/make.conf: NGINX_MODULES_HTTP="access autoindex browser charset \ empty_gif fastcgi flv geoip gzip limit_zone \ map proxy rewrite stub_status upstream_ip_hasby locojohn - Nginx Mailing List - English
Well, in that case you may as well support SCRIPT_URL / SCRIPT_URI, as there are some PHP scripts that rely on these variables set normally by Apache. nginx.conf: http { ... map $uri $script_url { ~^(?<script_filename>.+\.(php|html))(?<path_info>.+)$ $path_info; ~^(?<script_filename>.+\.(php|html))$ $script_filename; } ... } fastcgi_pby locojohn - Nginx Mailing List - English
Rainer Duffner Wrote: ------------------------------------------------------- > Am Tue, 3 Apr 2012 12:48:21 +0200 > schrieb Silvio Siefke <siefke_listen@web.de>: > > > > mkdir -p /var/run/fastcgi/php-fpm.sock > > > > Shouldn't that only be: > > mkdir -p /var/run/fastcgi/ Right, of course! My stupid mistake. Andrejsby locojohn - Nginx Mailing List - English
Edho Arief Wrote: ------------------------------------------------------- > Those are to handle urls like > www.example.com/index.php/some/para/meters. > Or, in other words, where PHP scripts require PATH_INFO / PATH_TRANSLATED environment variables to be set appropriately to the request, such as shown above. It isn't a popular practice these days, though, because URLs can be sby locojohn - Nginx Mailing List - English
Hi, Do you actually get any content, apart from errors in nginx error_log? The message "client closed prematurely connection while reading client request line, client: ..." shouldn't be a problem itself. "Some modern browsers tend to open 2 tcp connections to server from start, and if you are loading a single static file - one of them remains unused. The browser eventuallyby locojohn - Nginx Mailing List - English
In php.ini: expose_php = off Actually, you could do some googling before asking a question. Andrejsby locojohn - Nginx Mailing List - English
Adnan, if it doesn't set the "Content-Disposition" header as per my example, then it doesn't match the location in which this header is set. It is likely that some other location has preference and so the code I provided will never be triggered. Look into your nginx config more closely. Also, check the error log, do you get any warnings? Sometimes, PCRE library may throw a warninby locojohn - Nginx Mailing List - English
> Sorry but, what do you mean? Isn't "headers" a standard module ? How to check the compiled modules please ? nginx -V Try my solution, it works for me. Andrejsby locojohn - Nginx Mailing List - English
Adnan, For the following to work you need headers module installed: location ~ /(?<filename>(?!/).+\.mp3)$ { types { application/octet-stream mp3; } add_header Content-Disposition "attachment; filename=\"$filename\""; } Kind regards, Andrejsby locojohn - Nginx Mailing List - English
Also, if you're running Linux, the following parameter is wrong and should be commented, so it takes default value (safe). ; Specify the event mechanism FPM will use. The following is available: ; - select (any POSIX os) ; - poll (any POSIX os) ; - epoll (linux >= 2.5.44) ; - kqueue (FreeBSD >= 4.1, OpenBSD >= 2.9, NetBSD >= 2.0) ; - /dev/poll (Solaris >=by locojohn - Php-fpm Mailing List - English
http { ... geoip_country /usr/share/GeoIP/GeoIP.dat; # the country IP database geoip_city /usr/share/GeoIP/GeoLiteCity.dat; # the city IP database } ?by locojohn - Russian Forum
nginx.conf: # limit simultaneous connections limit_conn_zone $binary_remote_addr zone=addr:1m; limit_conn addr 16;by locojohn - How to...
I don't have the filters you mentioned, but here is the one additional (and very efficient) anti-DoS filter that works with http_limit_zone module: nginx-conn-limit.conf: # Fail2Ban configuration file # # supports: http_limit_zone module failregex = limiting connections by zone.*client: <HOST> # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the liby locojohn - How to...
> location / { > root /websites/some.domain/http; > index index.php index.html index.htm; > } Try to move this main root out of location / {} block to the server {} block: server { server_name ...; root ...; } Also, root should ALWAYS point to an absolute path. http://nginx.org/en/docs/http/ngx_http_core_module.html#root Andrejsby locojohn - Nginx Mailing List - English
Since you're on Linux, you might try to disable sendfile support in the first place: directio 512; sendfile off; tcp_nopush on; tcp_nodelay on; and see if it changes anything. Andrejsby locojohn - Other discussion
You can write me a private message to loco@andrews.lv if you still need help. Andrejsby locojohn - Requests for Paid Services
gencer Wrote: ------------------------------------------------------- > DO WE REALLY need to use apache proxy? No, you don't, or it depends. We moved from Apache+mod_php entirely to nginx + php-fpm a year ago. All initial issues were ironed out and the new combination proved to be stable. Andrejsby locojohn - Migration from Other Servers
Judging from your comments, the error is on the backend (PHP) side. Look into PHP error log. Andrejsby locojohn - How to...
Спасибо, Макс. Работает без проблем целый день. Надеюсь, вы включите этот патч в следующий релиз. Андрейby locojohn - Nginx Mailing List - Russian
Maxim Dounin Wrote: ------------------------------------------------------- > Похоже, я нашёл проблему, > так что debug log не обязателен. > Патч прилагается. > У меня этот патч не пошёл. По всей видимости, из-за форматирования на форуме. Я создал свby locojohn - Nginx Mailing List - Russian
#0 ngx_event_pipe_write_chain_to_temp_file (p=0x2238f88) at src/event/ngx_event_pipe.c:709 709 src/event/ngx_event_pipe.c: No such file or directory. (gdb) fr 0 #0 ngx_event_pipe_write_chain_to_temp_file (p=0x2238f88) at src/event/ngx_event_pipe.c:709 709 in src/event/ngx_event_pipe.c (gdb) p *p->busy->buf $1 = { pos = 0x232f455 "Data></Cell>\r\n <Celby locojohn - Nginx Mailing List - Russian
fr 0 p *p $1 = {upstream = 0x7fc76f262b50, downstream = 0x7fc76f2623d0, free_raw_bufs = 0x0, in = 0x0, last_in = 0x2238fa0, out = 0x223aae8, free = 0x223abb8, busy = 0x223a938, input_filter = 0x4653d0 <ngx_http_fastcgi_input_filter>, input_ctx = 0x227ba00, output_filter = 0x432f00 <ngx_http_output_filter>, output_ctx = 0x227ba00, read = 0, cacheable = 0, single_bufby locojohn - Nginx Mailing List - Russian
Валентин, это production server, я не могу себе этого позволить. На тест сервере я не могу повторить крэш. Андрейby locojohn - Nginx Mailing List - Russian
nginx version: nginx/1.1.15 TLS SNI support enabled configure arguments: --prefix=/usr --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=nginx --group=nginx --with-cc-opt=-I/usr/include --with-ld-opt=-L/usr/lib --http-log-path=/var/log/nginx/access_log --http-client-body-teby locojohn - Nginx Mailing List - Russian
mva Wrote: ------------------------------------------------------- > P.S.: тов. топикстартер, а > ебилдик не из риона ли, > часом? Не знаю, о чём вы говорите, товарищ! Я сам создал такой ebuild, так как использую нестандартный модуль http-concat, не входящиby locojohn - Nginx Mailing List - Russian
nginx 1.1.15 не компилируется с ngx_upload_progress модулем: /var/tmp/portage/www-servers/nginx-1.1.15/work/masterzen-nginx-upload-progress-module-c7c663f/ngx_http_uploadprogress_module.c: In function 'ngx_http_track_uploads': /var/tmp/portage/www-servers/nginx-1.1.15/work/masterzen-nginx-upload-progress-module-c7c663f/ngx_http_uploadprogress_module.c:1455:26: error: 'NGby locojohn - Nginx Mailing List - Russian
Andrey N. Oktyabrski Wrote: ------------------------------------------------------- > On 14.02.12 11:42, Xasima wrote: > > А существуют какие-то > принципиальные > ограничения, которые > затрудняют > > решить следующее > > http-concat не может > > получитьby locojohn - Nginx Mailing List - Russian
> Простите, а у вас что, НАПРЯМУЮ на продакшн сервер файлы заливаются? Нет. Андрей, у меня нет времени с вами спорить на тему изменения технического процесса. У вас есть что сказать по существу заданных вопросов безby locojohn - Nginx Mailing List - Russian
Не знаю, это как у кого. У меня настройки пулов внутри php-fpm.conf. Андрейby locojohn - Php-fpm Mailing List - Russian
Илья Шипицин Wrote: ------------------------------------------------------- > есть ajax minifier, например. > работает под ms build. > в чем разрабатывают ваши > программисты ? Спасибо, Илья. К сожалению, предыдущее моё письмо по какой-то причине стёрby locojohn - Nginx Mailing List - Russian