Re: Setting the status code

2013-08-05 Thread mex
let your app handle and deliver error-pages Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241621,241626#msg-241626 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx and WordPress in a subdirectory

2013-08-05 Thread mex
did you tried to --turn it off and on again -- check it w/out the Rewrite-Stuff in your apache-config? Where did you got that snippet from? your RewriteBase looks fishy Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241623,241625#msg-241625 ___

nginx and WordPress in a subdirectory

2013-08-05 Thread daveyfx
Hello - I've got nginx as a front-end to Apache and am trying to serve a single WordPress site from a location on my site. Right now I would like to test the location, but it will eventually be served as /advertise. I cannot get the WordPress site to serve correctly, however as I am seeing a 301

Setting the status code

2013-08-05 Thread Dennis Jacobfeuerborn
Hi, I'm wondering how I can set a status code and still deliver a custom web page? Specifically I want to use a status code of 403 Forbidden but depending on the exact reason I want to display different custom error pages for that case. When I use the "return 403" directive I can no longer deli

Re: writev function not implemented

2013-08-05 Thread Jérôme P.
Actually, I went ahead and rebuilt SPL and ZFS on my machine, and did an AUFS mount over ZFS... And wvtest ran, no problem. -- Posted via http://www.ruby-forum.com/. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngin

Re: Avice for my vhost configuration

2013-08-05 Thread B.R.
Yup, include is the way I would do that personally. Documentation: http://nginx.org/en/docs/ngx_core_module.html#include The funny thing is you already are using the 'include' directive: look at your 'include fastcgi_params;' line. There must be a 'fastcgi_params' file in your configuration direct

Re: writev function not implemented

2013-08-05 Thread Jérôme P.
I believe it *is* implemented. I re-did my tests on: - 3.10 (Debian) - 3.8 (Debian) - 3.8.0-27-generic (Ubuntu, the same as yours) - 3.2.0-40 (Ubuntu) - 2.6.38.2 (in-house) They all worked. I don't understand exactly how AUFS passes writev to the underlying filesystem, but there might be some we

Re: RE: writev function not implemented

2013-08-05 Thread Jonathan Matthews
On 5 August 2013 23:22, Rangel, Raul wrote: > So I just tried you little script inside my container (AUFS on top of ZFS): > > root@47dfdb95e2a6:/# ./a.out > writev: Function not implemented > root@47dfdb95e2a6:/# > > Then I tried my script outside of the container (ZFS): > me@slagathor:~/Projects/

nginx on Windows returns 504 Gateway Timeout when attempting to POST form using cURL via PHP

2013-08-05 Thread Ben Johnson
Hello, I have a fairly simple PHP script that I have used in the past, under Apache, to "simulate an HTTP form POST". For some reason, when I attempt to do the same under nginx, the browser hangs until some timeout is reached, at which point nginx returns a "504 Gateway Timeout" response to the b

cache based on file size

2013-08-05 Thread Johns, Kevin
Hi, In looking over Nginx configuration for the proxy module, I do not see an easy way to influence what is cached based on object size. I have two use cases of interest: 1. Store a small file in a particular zone (e.g., SSD), and 2. Have a large file bypass the cache (no-store large files) An

RE: RE: writev function not implemented

2013-08-05 Thread Rangel, Raul
So I just tried you little script inside my container (AUFS on top of ZFS): root@47dfdb95e2a6:/# ./a.out writev: Function not implemented root@47dfdb95e2a6:/# Then I tried my script outside of the container (ZFS): me@slagathor:~/Projects/service/services/upload$ ./a.out 6 Here is my uname: Lin

Re: RE: writev function not implemented

2013-08-05 Thread Jérôme P.
Rangel, Raul wrote in post #1117817: > So my assumption is that AUFS does not support writev? So I need to > somehow mount a different filesystem? I wrote a quick and dirty C program to test writev() on AUFS, and it worked like a charm here (3.8 Debian kernel). https://gist.github.com/jpetazzo/

Re: writev function not implemented

2013-08-05 Thread Richard Kearsley
On 05/08/13 21:13, Rangel, Raul wrote: The filesystem is AUFS. It's mounted inside of a docker container. So my assumption is that AUFS does not support writev? So I need to somehow mount a different filesystem? Hi I can't comment about AUFS, but you can change where those temp files are s

Avice for my vhost configuration

2013-08-05 Thread Mik J
Hello, I plan to configure my nginx server with a couple of vhosts. For each of them I want: - to use php - deny access begining by a dot - not logging access to favicon So my configuration would look like that server { ...     location ~ \.php$ {     root   /var/www/htdocs/s

RE: writev function not implemented

2013-08-05 Thread Rangel, Raul
The filesystem is AUFS. It's mounted inside of a docker container. root@012b3d2b6aab:/# cat /proc/mounts rootfs / rootfs rw 0 0 none / aufs rw,relatime,si=2418709ef08a7cdd 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 rpool/ROOT/ubunt

Re: writev function not implemented

2013-08-05 Thread Reinis Rozitis
2013/08/02 17:01:11 [crit] 26#0: *7 writev() "/var/lib/nginx/client_body_temp/01" failed (38: Function not implemented) On what filesystem does /var/lib/nginx/client_body_temp reside (like 'cat /proc/mounts')? rr ___ nginx mailing list n

Re: PHP Fatal error

2013-08-05 Thread Cool
This is nothing to do with nginx, you should go to PHP forum/mailing list, or a human to get answer, but after a quick check ... I think you have problem with the PHP codes, and it was clearly told by the error messages you posted here, there is something wrong in file "/web/domain.com/public/

writev function not implemented

2013-08-05 Thread Rangel, Raul
Hello, I have compiled nginx on ubuntu 12.04 but I'm seeing a really strange error when I try and POST a file through nginx. I get a line in my logs that says: 2013/08/02 17:01:11 [crit] 26#0: *7 writev() "/var/lib/nginx/client_body_temp/01" failed (38: Function not implemented), client

Re: error building nginx 1.5.3 on Cygwin

2013-08-05 Thread Kevin Worthington
Hi Maxim, Thanks for committing that. And again for your help. Cheers, Kevin -- Kevin Worthington http://kevinworthington.com/ http://twitter.com/kworthington On Mon, Aug 5, 2013 at 3:42 AM, Maxim Dounin wrote: > Hello! > > On Sat, Aug 03, 2013 at 12:31:54PM -0400, Kevin Worthington wrote: >

Re: still 400 response code, but so weird this time

2013-08-05 Thread microwish
Hi Maxim, Now I'm sure that the 400-related logs in access log file are caused by bad SSL connections, which either finish SSH handshakes and then sending no data, or don't finish SSH handshake at at. I'll be diving into it for more insights. Thank you. Maxim Dounin Wrote: --

Re: error building nginx 1.5.3 on Cygwin

2013-08-05 Thread Maxim Dounin
Hello! On Sat, Aug 03, 2013 at 12:31:54PM -0400, Kevin Worthington wrote: > Hi Maxim, > > Thanks so much. Your patch worked great. > > The build was failing without that change. > > Is there any way that patch can be incorporated into the main source, so > that it doesn't happen again in 1.5.4